faster loop

This commit is contained in:
Fox-McCloud
2016-02-09 22:40:33 -05:00
parent 80ae2796b7
commit ba5433476e

View File

@@ -17,7 +17,8 @@ var/global/datum/controller/process/timer/PStimer
if(!processing_timers.len)
disabled = 1 //nothing to do, lets stop firing.
return
for(var/datum/timedevent/event in processing_timers)
for(last_object in processing_timers)
var/datum/timedevent/event = last_object
if(!event.thingToCall || qdeleted(event.thingToCall))
qdel(event)
if(event.timeToRun <= world.time)