added stopping game startup actions on Escape key when using MM engine
authorHolger Schemel <info@artsoft.org>
Wed, 17 May 2023 09:25:43 +0000 (11:25 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 17 May 2023 09:25:43 +0000 (11:25 +0200)
src/game_mm/mm_game.c

index 6ff1d678b886f0d648c66116da20de848fdce39f..3c18bcc54e317f8408f4c1e5f7269894fa618f9d 100644 (file)
@@ -837,6 +837,9 @@ void InitGameActions_MM(void)
     AdvanceFrameCounter();
     AdvanceGfxFrame();
 
+    if (PendingEscapeKeyEvent())
+      continue;
+
 #ifdef DEBUG
     if (setup.quick_doors)
       continue;