Burning objects are processed every tick now instead of using a spawn() check

This commit is contained in:
Ikarrus
2015-06-27 09:22:14 -06:00
parent 6cc17a6243
commit 59ca40f03d
4 changed files with 21 additions and 13 deletions
+7 -2
View File
@@ -9,6 +9,7 @@ var/datum/subsystem/objects/SSobj
priority = 12
var/list/processing = list()
var/list/burning = list()
/datum/subsystem/objects/New()
NEW_SS_GLOBAL(SSobj)
@@ -37,5 +38,9 @@ var/datum/subsystem/objects/SSobj
++i
continue
SSobj.processing.Cut(i, i+1)
for(var/obj/burningobj in SSobj.burning)
if(burningobj && (burningobj.burn_state == 1))
if(burningobj.burn_world_time < world.time)
burningobj.burn()
else
SSobj.burning -= burningobj