rnd-20100210-1-src
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 458f8aa653075e9f05c2d0aa4c929ba4201a0ec0..8e7d8830c9dc360fa294616da41450cdf098c5f9 100644 (file)
@@ -75,16 +75,58 @@ int subDoGameStuff()
   // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   if (KillMurphyFlag == 1 || MurphyMoveCounter == 0)
   {
+#if 1
+    if (LeadOutCounter == 0 &&
+       !game_sp_info.LevelSolved &&
+       !game_sp_info.GameOver)
+#else
     if (LeadOutCounter == 0)
+#endif
     {
-#if 0
+#if 1
       printf("::: DoGameStuff.c: killing murphy [%d] ...\n", KillMurphyFlag);
 #endif
 
       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)
+    {
+#if 1
+      printf("::: DoGameStuff.c: !!!!!!!!!! GAME OVER !!!!!!!!!!\n");
+#endif
+
+      game_sp_info.GameOver = TRUE;
+    }
+#endif
+#endif
+
   } //  loc_g_22FB: