Fixes TGUI aghost interactions + disposals

This commit is contained in:
AffectedArc07
2020-06-30 13:51:52 +01:00
parent 58aa86cb9f
commit 3b59c7ca27
3 changed files with 9 additions and 5 deletions
+5
View File
@@ -56,3 +56,8 @@ GLOBAL_DATUM_INIT(tgui_default_state, /datum/tgui_state/default, new)
return STATUS_INTERACTIVE
else
return ..()
/mob/dead/observer/default_can_use_tgui_topic()
if(can_admin_interact())
return STATUS_INTERACTIVE // Admins are more equal
return STATUS_UPDATE // Ghosts can view updates
+2
View File
@@ -9,5 +9,7 @@ GLOBAL_DATUM_INIT(tgui_observer_state, /datum/tgui_state/observer_state, new)
/datum/tgui_state/observer_state/can_use_topic(src_object, mob/user)
if(isobserver(user))
return STATUS_INTERACTIVE
if(check_rights(R_ADMIN, 0, src))
return STATUS_INTERACTIVE
return STATUS_CLOSE