stop the pills (#18703)

* RedPills Processing

Now you have to use START_PROCESSING(SSname, thing) (and STOP_PROCESSING)

* Fixes a minor bug.
This commit is contained in:
Kyle Spier-Swenson
2016-06-20 12:07:44 +02:00
committed by AnturK
parent c480ad71ee
commit 0d6bbbb412
90 changed files with 424 additions and 416 deletions
+3 -1
View File
@@ -51,7 +51,9 @@ var/datum/subsystem/machines/SSmachine
if(thing:use_power)
thing:auto_use_power() //add back the power state
else
processing.Remove(thing)
processing -= thing
if (thing)
thing.isprocessing = 0
if (MC_TICK_CHECK)
return
+3 -2
View File
@@ -1,8 +1,9 @@
var/datum/subsystem/objects/SSobj
/datum/var/isprocessing = 0
/datum/proc/process()
set waitfor = 0
SSobj.processing.Remove(src)
STOP_PROCESSING(SSobj, src)
return 0
/datum/subsystem/objects
@@ -50,7 +51,7 @@ var/datum/subsystem/objects/SSobj
if(thing)
thing.process(wait)
else
SSobj.processing.Remove(thing)
SSobj.processing -= thing
if (MC_TICK_CHECK)
return