moved code to count bits to separate function
[rocksndiamonds.git] / src / game_mm / mm_game.c
index 204ddf63a95daef1328ee1d399f8a304fd4348ee..3c18bcc54e317f8408f4c1e5f7269894fa618f9d 100644 (file)
@@ -837,16 +837,24 @@ void InitGameActions_MM(void)
     AdvanceFrameCounter();
     AdvanceGfxFrame();
 
-    DrawLevel_MM();
-
-    BackToFront_MM();
+    if (PendingEscapeKeyEvent())
+      continue;
 
 #ifdef DEBUG
     if (setup.quick_doors)
       continue;
 #endif
+
+    DrawLevel_MM();
+
+    BackToFront_MM();
   }
 
+#ifdef DEBUG
+  if (setup.quick_doors)
+    DrawLevel_MM();
+#endif
+
   ScanLaser();
 
   if (game_mm.kettles_still_needed == 0)