Merge pull request #4197 from Citadel-Station-13/upstream-merge-33219

[MIRROR] Crash to timers and INFINITY check to beams.
This commit is contained in:
deathride58
2017-12-03 23:24:53 +00:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -357,6 +357,9 @@ SUBSYSTEM_DEF(timer)
wait = max(wait, 0)
if(wait >= INFINITY)
CRASH("Attempted to create timer with INFINITY delay")
var/hash
if (flags & TIMER_UNIQUE)

View File

@@ -29,7 +29,8 @@
icon = beam_icon
icon_state = beam_icon_state
beam_type = btype
addtimer(CALLBACK(src,.proc/End), time)
if(time < INFINITY)
addtimer(CALLBACK(src,.proc/End), time)
/datum/beam/proc/Start()
Draw()