mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
fixes blind rushers hallucination runtimes (#28084)
* adds a qdeleted check * seems good enough --------- Co-authored-by: Toastical <toastical@toaster.com> Co-authored-by: Toastical <toast@toaster.com>
This commit is contained in:
@@ -134,6 +134,8 @@ SUBSYSTEM_DEF(timer)
|
||||
callBack.InvokeAsync()
|
||||
|
||||
if(ctime_timer.flags & TIMER_LOOP)
|
||||
if(QDELETED(ctime_timer))
|
||||
continue
|
||||
ctime_timer.spent = 0
|
||||
ctime_timer.timeToRun = REALTIMEOFDAY + ctime_timer.wait
|
||||
BINARY_INSERT_TG(ctime_timer, clienttime_timers, /datum/timedevent, ctime_timer, timeToRun, COMPARE_KEY)
|
||||
@@ -180,6 +182,8 @@ SUBSYSTEM_DEF(timer)
|
||||
last_invoke_tick = world.time
|
||||
|
||||
if(timer.flags & TIMER_LOOP) // Prepare looping timers to re-enter the queue
|
||||
if(QDELETED(timer))
|
||||
continue
|
||||
timer.spent = 0
|
||||
timer.timeToRun = world.time + timer.wait
|
||||
timer.bucketJoin()
|
||||
|
||||
Reference in New Issue
Block a user