mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 18:33:36 +00:00
Crash to timers and INFINITY check to beams. (#33219)
* beams * timers * >= instead of != * whooops
This commit is contained in:
committed by
CitadelStationBot
parent
6217206bae
commit
b1e15a0da2
@@ -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)
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
icon = beam_icon
|
||||
icon_state = beam_icon_state
|
||||
beam_type = btype
|
||||
if(time < INFINITY)
|
||||
addtimer(CALLBACK(src,.proc/End), time)
|
||||
|
||||
/datum/beam/proc/Start()
|
||||
|
||||
Reference in New Issue
Block a user