X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FMainGameLoop.c;h=39580a30f6ea5f81dbf22eccef16657f2850ca4c;hb=7a3792dad12dfcdac06d0566da60a4ea69c5dfac;hp=294e414361f6b0078646c8d2181bbc754f6c2588;hpb=92ae204856b3b41863f4244dd75cc5c7268f034d;p=rocksndiamonds.git 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)