rnd-20091101-1-src
[rocksndiamonds.git] / src / game_sp / MainGameLoop.c
index e1f81f4ddedf7d1e953beaabfdc1c67c1d63a066..bae1d6d95d4aa886acbca1a8586bacae1bd36874 100644 (file)
@@ -279,11 +279,16 @@ locRepeatMainGameLoop:                           // start repeating game loop
 
 locExitMainGameLoop:
 
-#if 0
+#if 1
   printf("::: locExitMainGameLoop reached [%d]\n", LeadOutCounter);
+  printf("::: [KillMurphyFlag == %d]\n", KillMurphyFlag);
 #endif
 
-
+#if 1
+  /* if the game is not won when reaching this point, then it is lost */
+  if (!game_sp_info.LevelSolved)
+    game_sp_info.GameOver = TRUE;
+#endif
 
 #if 1
   return subMainGameLoop;