Makes processing subsystems respect qdel and PROCESS_KILL (#28146)

This commit is contained in:
Jordan Brown
2017-06-07 15:16:51 -04:00
committed by Leo
parent 2e120dbe7e
commit c03b0e5f19

View File

@@ -22,9 +22,7 @@ SUBSYSTEM_DEF(processing)
while(current_run.len)
var/datum/thing = current_run[current_run.len]
current_run.len--
if(thing)
thing.process(wait)
else
if(QDELETED(thing) || thing.process(wait) == PROCESS_KILL)
processing -= thing
if (MC_TICK_CHECK)
return
@@ -33,4 +31,4 @@ SUBSYSTEM_DEF(processing)
/datum/proc/process()
set waitfor = 0
STOP_PROCESSING(SSobj, src)
return 0
return 0