From bb8267476f48e0fd9f61c5cd047e8b2305daeb37 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 9c3abf8cb35..c33bb463b32 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++