This commit is contained in:
Erki
2017-10-17 20:39:50 -05:00
committed by Lohikar
parent dcf6bba66d
commit 6c47fb889a
24 changed files with 174 additions and 183 deletions
+4 -7
View File
@@ -235,22 +235,19 @@ var/datum/controller/subsystem/garbage_collector/SSgarbage
// This should be overridden to remove all references pointing to the object being destroyed.
// Return the appropriate QDEL_HINT; in most cases this is QDEL_HINT_QUEUE.
/datum/proc/Destroy(force=FALSE)
if (destroy_listeners)
RaiseOnDestroy()
SSnanoui.close_uis(src)
weakref = null
destroyed_event.raise_event(src)
SSnanoui.close_uis(src)
tag = null
var/list/timers = active_timers
active_timers = null
if (timers)
for(var/thing in timers)
for (var/thing in timers)
var/datum/timedevent/timer = thing
if (timer.spent)
continue
qdel(timer)
return QDEL_HINT_QUEUE
/datum/var/gcDestroyed //Time when this object was destroyed.
+5 -1
View File
@@ -11,7 +11,8 @@
/var/list/controller_debug_list = list(
"Configuration",
"Cameras",
"Gas Data"
"Gas Data",
"Observation"
)
/client/proc/debug_controller(controller in controller_debug_list)
@@ -30,4 +31,7 @@
if("Gas Data")
debug_variables(gas_data)
feedback_add_details("admin_verb","DGasdata")
if("Observation")
debug_variables(all_observable_events)
feedback_add_details("admin_verb", "DObservation")
message_admins("Admin [key_name_admin(usr)] is debugging the [controller] controller.")