From: Holger Schemel Date: Sat, 6 Apr 2024 16:52:55 +0000 (+0200) Subject: fixed delay for setting "game over" state for native Supaplex engine X-Git-Tag: 4.4.0.0-test-1~99 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=02a250a454b936698229de4f548fd8b54ce82cae;p=rocksndiamonds.git fixed delay for setting "game over" state for native Supaplex engine --- diff --git a/src/game_sp/MainGameLoop.c b/src/game_sp/MainGameLoop.c index 294e4143..39580a30 100644 --- a/src/game_sp/MainGameLoop.c +++ b/src/game_sp/MainGameLoop.c @@ -66,6 +66,10 @@ void subMainGameLoop_Main(byte action) // ---------------------- END OF GAME-BUSY LOOP ------------------------------ // --------------------------------------------------------------------------- + // if the game is not won when reaching this point, then it is lost + if (!game_sp.level_solved) + game_sp.game_over = TRUE; + LeadOutCounter = LeadOutCounter - 1; // do more lead-out after quit if (LeadOutCounter != 0) // lead-out not ready: more @@ -73,10 +77,6 @@ void subMainGameLoop_Main(byte action) // lead-out done: exit now // ---------------------- END OF GAME-BUSY LOOP (including lead-out) --------- - - // if the game is not won when reaching this point, then it is lost - if (!game_sp.level_solved) - game_sp.game_over = TRUE; } void subCalculateScreenScrollPos(void)