[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-04 16:02:56 +13:00
committed by oranges
parent fd337f0741
commit bee4b132a3
183 changed files with 358 additions and 376 deletions
@@ -77,10 +77,10 @@
ready_implants--
if(!replenishing && auto_replenish)
replenishing = TRUE
addtimer(src,"replenish",replenish_cooldown)
addtimer(CALLBACK(src,"replenish"),replenish_cooldown)
if(injection_cooldown > 0)
ready = FALSE
addtimer(src,"set_ready",injection_cooldown)
addtimer(CALLBACK(src,"set_ready"),injection_cooldown)
else
playsound(get_turf(src), 'sound/machines/buzz-sigh.ogg', 25, 1)
update_icon()
@@ -106,7 +106,7 @@
if(ready_implants < max_implants)
ready_implants++
if(ready_implants < max_implants)
addtimer(src,"replenish",replenish_cooldown)
addtimer(CALLBACK(src,"replenish"),replenish_cooldown)
else
replenishing = FALSE