From 6daf42a959b519cf552048bfcc61d7ee861033ae Mon Sep 17 00:00:00 2001 From: NY00123 Date: Fri, 22 May 2020 02:03:03 +0300 Subject: [PATCH] sw/src/game.cpp:RunLevel: Call faketimerhandler in a loop, based on code from EDuke32-OldMP. Main difference from EDuke32-OldMP is that this is done even while staying in the menu; Behaviors will otherwise break. We should also call timerUpdateClock() before the loop, especially after removing the call to this function from faketimerhandler soon. --- source/sw/src/game.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index c42544d10..51e86ad70 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -2599,6 +2599,10 @@ void RunLevel(void) ExitLevel = FALSE; break; } + + timerUpdateClock(); + while (ready2send && (totalclock >= ototalclock + synctics)) + faketimerhandler(); } ready2send = 0;