X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FMainGameLoop.c;h=39580a30f6ea5f81dbf22eccef16657f2850ca4c;hb=02a250a454b936698229de4f548fd8b54ce82cae;hp=c6d2d6dcfec6fa5c62aecaed377fa71343533ce9;hpb=a99a1803e5097bc598b4c6f73259715da148ab27;p=rocksndiamonds.git diff --git a/src/game_sp/MainGameLoop.c b/src/game_sp/MainGameLoop.c index c6d2d6dc..39580a30 100644 --- a/src/game_sp/MainGameLoop.c +++ b/src/game_sp/MainGameLoop.c @@ -25,7 +25,7 @@ void subMainGameLoop_Init(void) RedDiskReleasePhase = 0; // (re-)enable red disk release } -void subMainGameLoop_Main(byte action, boolean warp_mode) +void subMainGameLoop_Main(byte action) { // --------------------------------------------------------------------------- // --------------------- START OF GAME-BUSY LOOP ----------------------------- @@ -66,6 +66,10 @@ void subMainGameLoop_Main(byte action, boolean warp_mode) // ---------------------- 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, boolean warp_mode) // 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)