added closing request door before covering BD screen (if still open)
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 19:46:48 +0000 (20:46 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 19:50:46 +0000 (20:50 +0100)
src/tools.c

index 1053e80757a6dddca52c09b7d80137ac02ac596b..deddc334ba49287586e3481f3ec786cbb03c3172 100644 (file)
@@ -1004,6 +1004,16 @@ void CoverScreen(void)
   if (level.game_engine_type != GAME_ENGINE_TYPE_BD || !game_bd.cover_screen)
     return;
 
+  // before covering screen, close request door that might still be open
+  if (game.request_open)
+  {
+    // if request open after asking to save tape after game won, close all doors for hall of fame
+    if (setup.show_scores_after_game)
+      CloseDoor(DOOR_CLOSE_ALL);
+    else
+      CloseDoor(DOOR_CLOSE_1);
+  }
+
   CoverScreen_BD();
 }