mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 18:14:22 +01:00
Fixes client timers.
This commit is contained in:
@@ -259,11 +259,11 @@ SUBSYSTEM_DEF(timer)
|
||||
var/datum/timedevent/Last = ctts[cttl]
|
||||
if(Last.timeToRun >= timeToRun)
|
||||
ctts += src
|
||||
else if(cttl > 1)
|
||||
for(var/I in cttl to 1)
|
||||
var/datum/timedevent/E = ctts[I]
|
||||
else
|
||||
for(var/i=cttl,i>=1,i--)
|
||||
var/datum/timedevent/E = ctts[i]
|
||||
if(E.timeToRun <= timeToRun)
|
||||
ctts.Insert(src, I)
|
||||
ctts.Insert(i, src)
|
||||
break
|
||||
else
|
||||
ctts += src
|
||||
|
||||
Reference in New Issue
Block a user