Merge pull request #18727 from RemieRichards/global_procs_in_addtimer

You can now call global procs with addtimer()
This commit is contained in:
oranges
2016-06-21 10:18:49 +12:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -36,7 +36,10 @@ var/datum/subsystem/timer/SStimer
/datum/subsystem/timer/proc/runevent(datum/timedevent/event)
set waitfor = 0
call(event.thingToCall, event.procToCall)(arglist(event.argList))
if(event.thingToCall == GLOBAL_PROC && istext(event.procToCall))
call("/proc/[event.procToCall]")(arglist(event.argList))
else
call(event.thingToCall, event.procToCall)(arglist(event.argList))
/datum/subsystem/timer/Recover()
processing |= SStimer.processing