X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2FDoGameStuff.c;h=8e7d8830c9dc360fa294616da41450cdf098c5f9;hb=61ca162f9268de1fa4fe0df3f561189b1a71770d;hp=d41da8c37157b22de6391797f33366ae4b652282;hpb=3b19d917acb541df11a45e0d4b4e40ad4e38a717;p=rocksndiamonds.git diff --git a/src/game_sp/DoGameStuff.c b/src/game_sp/DoGameStuff.c index d41da8c3..8e7d8830 100644 --- a/src/game_sp/DoGameStuff.c +++ b/src/game_sp/DoGameStuff.c @@ -76,7 +76,9 @@ int subDoGameStuff() if (KillMurphyFlag == 1 || MurphyMoveCounter == 0) { #if 1 - if (LeadOutCounter == 0 && !game_sp_info.LevelSolved) + if (LeadOutCounter == 0 && + !game_sp_info.LevelSolved && + !game_sp_info.GameOver) #else if (LeadOutCounter == 0) #endif @@ -88,9 +90,30 @@ int subDoGameStuff() KillMurphyFlag = 0; // no more "kill Murphy" ExplodeFieldSP(MurphyExplodePos); // Explode LeadOutCounter = 0x40; // quit: start lead-out + +#if 1 + +#if 1 + printf("::: DoGameStuff.c: !!!!!!!!!! GAME OVER !!!!!!!!!!\n"); + printf("::: [KillMurphyFlag == %d]\n", KillMurphyFlag); +#endif + +#if 1 + /* give Murphy some more time (LeadOutCounter) to reach the exit */ +#else + game_sp_info.GameOver = TRUE; +#endif + +#endif } #if 1 +#if 0 + printf("::: *** %d, %d, %d\n", KillMurphyFlag, + game_sp_info.LevelSolved, game_sp_info.GameOver); +#endif + +#if 0 if (KillMurphyFlag == 1 && !game_sp_info.LevelSolved && !game_sp_info.GameOver) @@ -102,7 +125,7 @@ int subDoGameStuff() game_sp_info.GameOver = TRUE; } #endif - +#endif } // loc_g_22FB: