Fixes events with sleeps.
This commit is contained in:
committed by
CitadelStationBot
parent
58ff06a44b
commit
cae3dd615d
@@ -157,19 +157,28 @@
|
||||
return
|
||||
|
||||
if(activeFor == startWhen)
|
||||
processing = FALSE
|
||||
start()
|
||||
processing = TRUE
|
||||
|
||||
if(activeFor == announceWhen)
|
||||
processing = FALSE
|
||||
announce()
|
||||
processing = TRUE
|
||||
|
||||
if(startWhen < activeFor && activeFor < endWhen)
|
||||
processing = FALSE
|
||||
tick()
|
||||
processing = TRUE
|
||||
|
||||
if(activeFor == endWhen)
|
||||
processing = FALSE
|
||||
end()
|
||||
processing = TRUE
|
||||
|
||||
// Everything is done, let's clean up.
|
||||
if(activeFor >= endWhen && activeFor >= announceWhen && activeFor >= startWhen)
|
||||
processing = FALSE
|
||||
kill()
|
||||
|
||||
activeFor++
|
||||
|
||||
Reference in New Issue
Block a user