X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FMainGameLoop.c;h=2baa7435cc542dd2f258e55ad3a15b99b8971fe0;hb=3b19d917acb541df11a45e0d4b4e40ad4e38a717;hp=79f1ec9c6fbbffbe633f119e9ee2b52b946f2dd4;hpb=055b582fdcaeddfa6dbb240eb591ec61f37e21d3;p=rocksndiamonds.git diff --git a/src/game_sp/MainGameLoop.c b/src/game_sp/MainGameLoop.c index 79f1ec9c..2baa7435 100644 --- a/src/game_sp/MainGameLoop.c +++ b/src/game_sp/MainGameLoop.c @@ -236,9 +236,13 @@ locRepeatMainGameLoop: // start repeating game loop { // happens when demo ends or when Murphy enters exit (to be checked) +#if 0 printf("::: ExitToMenuFlag == True\n"); +#endif +#if 0 goto locExitMainGameLoop; +#endif } #else if (ExitToMenuFlag == 1) @@ -257,6 +261,11 @@ locRepeatMainGameLoop: // start repeating game loop // ---------------------- END OF GAME-BUSY LOOP ------------------------------- // ---------------------------------------------------------------------------- LeadOutCounter = LeadOutCounter - 1; // do more lead-out after quit + +#if 0 + printf("::: LeadOutCounter == %d\n", LeadOutCounter); +#endif + #if 1 if (LeadOutCounter != 0) // lead-out not ready: more return subMainGameLoop; @@ -270,10 +279,18 @@ locRepeatMainGameLoop: // start repeating game loop locExitMainGameLoop: -#if 0 +#if 1 printf("::: locExitMainGameLoop reached [%d]\n", LeadOutCounter); #endif + + +#if 1 + return subMainGameLoop; +#endif + + + do { DoEvents(); // user may klick on menus or move the window here ... @@ -306,7 +323,6 @@ locExitMainGameLoop: if (UpdatedFlag == 0) // update playing time subUpdatePlayingTime(); - return subMainGameLoop; } // subMainGameLoop