rnd-20091023-1-src
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 458f8aa653075e9f05c2d0aa4c929ba4201a0ec0..ce1d77e2d6b8b12d181ea63b15d112e17dab2160 100644 (file)
@@ -75,7 +75,13 @@ 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
       printf("::: DoGameStuff.c: killing murphy [%d] ...\n", KillMurphyFlag);
@@ -84,7 +90,36 @@ 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");
+#endif
+
+      game_sp_info.GameOver = TRUE;
+#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: