Merge pull request #3048 from Citadel-Station-13/upstream-merge-31157
[MIRROR] Fixes events with sleeps.
This commit is contained in:
@@ -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