rnd-20091020-2-src
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 01d70744f9d61b314cf94ebb0dbda3c8aaad719e..d41da8c37157b22de6391797f33366ae4b652282 100644 (file)
@@ -66,7 +66,7 @@ int subDoGameStuff()
     } // loop    locloop_g_22B8          ' until all animatables done
   }
 
-#if 1
+#if 0
   printf("::: DoGameStuff.c: KillMurphyFlag == %d [%d]\n",
         KillMurphyFlag, MurphyMoveCounter);
 #endif
@@ -75,7 +75,11 @@ int subDoGameStuff()
   // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   if (KillMurphyFlag == 1 || MurphyMoveCounter == 0)
   {
+#if 1
+    if (LeadOutCounter == 0 && !game_sp_info.LevelSolved)
+#else
     if (LeadOutCounter == 0)
+#endif
     {
 #if 1
       printf("::: DoGameStuff.c: killing murphy [%d] ...\n", KillMurphyFlag);
@@ -85,6 +89,21 @@ int subDoGameStuff()
       ExplodeFieldSP(MurphyExplodePos);                 // Explode
       LeadOutCounter = 0x40;           // quit: start lead-out
     }
+
+#if 1
+    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
+
+
   } //  loc_g_22FB: