From cae3dd615d0a20654191f1b0fa116567dc0eaf8a Mon Sep 17 00:00:00 2001 From: AnturK Date: Sat, 30 Sep 2017 15:47:33 +0200 Subject: [PATCH] Fixes events with sleeps. --- code/modules/events/_event.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/events/_event.dm b/code/modules/events/_event.dm index 9c3abf8cb3..c33bb463b3 100644 --- a/code/modules/events/_event.dm +++ b/code/modules/events/_event.dm @@ -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++