rnd-20091012-1-src
[rocksndiamonds.git] / src / game_sp / DoGameStuff.c
index 01d70744f9d61b314cf94ebb0dbda3c8aaad719e..3d856d542da029eb0cd8adcce9c509b85644dcd5 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
@@ -77,7 +77,7 @@ int subDoGameStuff()
   {
     if (LeadOutCounter == 0)
     {
-#if 1
+#if 0
       printf("::: DoGameStuff.c: killing murphy [%d] ...\n", KillMurphyFlag);
 #endif
 
@@ -85,6 +85,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: