From 9551c2b88309b092c9de5ccfc6e713ebe14d250f Mon Sep 17 00:00:00 2001 From: Tim Felgentreff <timfelgentreff@gmail.com> Date: Wed, 23 Dec 2020 14:41:58 +0100 Subject: [PATCH] rare screen updates --- src/stratagus/mainloop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratagus/mainloop.cpp b/src/stratagus/mainloop.cpp index 3b08a9814..b9966ac99 100644 --- a/src/stratagus/mainloop.cpp +++ b/src/stratagus/mainloop.cpp @@ -307,7 +307,7 @@ static void GameLogicLoop() ParticleManager.update(); // handle particles CheckMusicFinished(); // Check for next song - if (FastForwardCycle <= GameCycle || !(GameCycle & 0x3f)) { + if (FastForwardCycle <= GameCycle || !(GameCycle & 0xff)) { WaitEventsOneFrame(); } @@ -352,7 +352,7 @@ static void DisplayLoop() VideoSyncSpeed = 3000; } #endif - if (FastForwardCycle <= GameCycle || GameCycle <= 10 || !(GameCycle & 0x3f)) { + if (FastForwardCycle <= GameCycle || GameCycle <= 10 || !(GameCycle & 0xff)) { //FIXME: this might be better placed somewhere at front of the // program, as we now still have a game on the background and // need to go through the game-menu or supply a map file