fixed showing wrong playfield actions when closing "replace tape" door
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 17:57:19 +0000 (18:57 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 17:57:19 +0000 (18:57 +0100)
This is another bug that was introduced by commit feec08d4.

src/screens.c

index cedb6e9cfab0170efdca69a2e95b48115036d74d..e7c233a1bcbbb2d42bb88bdfbabfa1e5c5af51b2 100644 (file)
@@ -4784,8 +4784,6 @@ static void DrawInfoScreen_FromMainMenuOrInitGame(int nr, boolean from_game_stat
   else
     return;
 
-  CloseDoor(DOOR_CLOSE_2);
-
   if (from_game_status == GAME_MODE_MAIN)
     SetGameStatus(GAME_MODE_INFO);
   else if (from_game_status == GAME_MODE_PLAYING)
@@ -4793,6 +4791,8 @@ static void DrawInfoScreen_FromMainMenuOrInitGame(int nr, boolean from_game_stat
   else
     return;
 
+  CloseDoor(DOOR_CLOSE_ALL);
+
   info_mode = nr;
 
   if (redraw_mask & REDRAW_ALL)