fixed bug with closing tape recorder door after game
authorHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 13:34:06 +0000 (14:34 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Mon, 6 Jan 2025 13:35:19 +0000 (14:35 +0100)
Only close tape recorder door when entering hall of fame, but not when
playing next game or when returning to main menu.

src/game.c

index 186e7749a7ccf6b962bf131a052ce10929d4e65d..f64ced6b578339bb8cdccbf72fec4add0bc3731b 100644 (file)
@@ -5356,9 +5356,6 @@ void GameEnd(void)
     strcpy(tape.score_tape_basename, getScoreTapeBasename(setup.player_name));
   }
 
-  // if no tape is to be saved, close both doors simultaneously
-  CloseDoor(DOOR_CLOSE_ALL);
-
   if (level_editor_test_game || score_info_tape_play)
   {
     SetGameStatus(GAME_MODE_MAIN);
@@ -5393,6 +5390,8 @@ void GameEnd(void)
 
   if (game.LevelSolved_SaveScore && scores.last_added >= 0 && setup.show_scores_after_game)
   {
+    CloseDoor(DOOR_CLOSE_ALL);
+
     SetGameStatus(GAME_MODE_SCORES);
 
     DrawHallOfFame(last_level_nr);