rnd-20100216-2-src
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 3d856d542da029eb0cd8adcce9c509b85644dcd5..8e7d8830c9dc360fa294616da41450cdf098c5f9 100644 (file)
@@ -75,18 +75,45 @@ 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)
@@ -98,7 +125,7 @@ int subDoGameStuff()
       game_sp_info.GameOver = TRUE;
     }
 #endif
-
+#endif
 
   } //  loc_g_22FB: