Fixes events with sleeps.

This commit is contained in:
AnturK
2017-09-30 15:47:33 +02:00
committed by CitadelStationBot
parent 58ff06a44b
commit cae3dd615d

View File

@@ -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++