From: Holger Schemel Date: Mon, 6 Jan 2025 13:34:06 +0000 (+0100) Subject: fixed bug with closing tape recorder door after game X-Git-Tag: 4.4.0.1~45 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=feec08d456b68110fb8c9b3d38b3f21cebe065fe;p=rocksndiamonds.git 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. --- 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);