Skip to content

Commit

Permalink
Last update.
Browse files Browse the repository at this point in the history
  • Loading branch information
SireTurret2 committed Oct 31, 2020
1 parent 0dd6161 commit 01e1d51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/controllers/subsystems/timer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,9 @@ SUBSYSTEM_DEF(timer)
if (wait < 0)
crash_with("addtimer called with a negative wait. Converting to [world.tick_lag]")

if (callback.object != GLOBAL_PROC && QDELETED(callback.object) && !QDESTROYING(callback.object))
crash_with("addtimer called with a callback assigned to a qdeleted object. In the future such timers will not be supported and may refuse to run or run with a 0 wait")
if ( callback.object != GLOBAL_PROC )
if ( QDELETED(callback.object) && !QDESTROYING(callback.object) )
crash_with("addtimer called with a callback assigned to a qdeleted object. In the future such timers will not be supported and may refuse to run or run with a 0 wait")

wait = max(Ceiling(wait, world.tick_lag), world.tick_lag)

Expand Down

0 comments on commit 01e1d51

Please sign in to comment.