[READY]Makes addtimer use callbacks (#22660)

* Makes addtimer use callbacks

* I broke the comment

* I fucked up the regex

* this was a silly idea.
This commit is contained in:
Kyle Spier-Swenson
2017-01-03 19:02:56 -08:00
committed by oranges
parent fd337f0741
commit bee4b132a3
183 changed files with 358 additions and 376 deletions
+2 -2
View File
@@ -18,10 +18,10 @@
. = ..()
if(!.)
return
addtimer(src, "close", 0, TIMER_UNIQUE)
addtimer(CALLBACK(src, .proc/close), 0, TIMER_UNIQUE)
// Close any attached airlocks as well
for(var/obj/machinery/door/D in orange(1, src))
addtimer(src, "close", 0, TIMER_UNIQUE)
addtimer(CALLBACK(src, .proc/close), 0, TIMER_UNIQUE)
/obj/machinery/door/airlock/onShuttleMove()
shuttledocked = 0
+1 -1
View File
@@ -99,7 +99,7 @@
L.visible_message("<span class='revennotice'>A strange purple glow wraps itself around [L] as [L.p_they()] suddenly fall[L.p_s()] unconscious.</span>",
"<span class='revendanger'>[desc]</span>")
// Don't let them sit suround unconscious forever
addtimer(src, "sleeper_dreams", 100, TIMER_NORMAL, L)
addtimer(CALLBACK(src, .proc/sleeper_dreams, L), 100)
// Existing sleepers
for(var/i in found)