added flags for "level solved" and "game over" to EM engine
[rocksndiamonds.git] / src / game_em / convert.c
index 3cad1078befb04c5784c2c9c130b4bbfa944cb45..d61e33eec5db472f1f55df60d9bad4b77221fe8b 100644 (file)
@@ -454,8 +454,10 @@ int cleanup_em_level(unsigned char *src, int length, char *filename)
   /* size of v6 cave */
   length = 2172;
 
+#if 0
   if (options.debug)
-    printf("::: EM level file version: %d\n", file_version);
+    Error(ERR_DEBUG, "EM level file version: %d", file_version);
+#endif
 
   return file_version;
 }
@@ -1111,6 +1113,10 @@ void prepare_em_level(void)
   // in function InitGameEngine() (src/game.c):
   //
   // - game_em.use_single_button (default: TRUE)
+  // - game_em.use_snap_key_bug (default: FALSE)
+
+  game_em.level_solved = FALSE;
+  game_em.game_over = FALSE;
 
   game_em.any_player_moving = FALSE;
   game_em.any_player_snapping = FALSE;