From feec08d456b68110fb8c9b3d38b3f21cebe065fe Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 6 Jan 2025 14:34:06 +0100 Subject: [PATCH] fixed bug with closing tape recorder door after game 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/game.c b/src/game.c index 186e7749..f64ced6b 100644 --- a/src/game.c +++ b/src/game.c @@ -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); -- 2.34.1