mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Merge pull request #18727 from RemieRichards/global_procs_in_addtimer
You can now call global procs with addtimer()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user