From: Holger Schemel Date: Sat, 24 Apr 2021 23:18:28 +0000 (+0200) Subject: fixed saving already erased score tape X-Git-Tag: 4.3.0.0~181 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=edfb8a9789e107ac11ad76e456bb0f7c2a943ffa;p=rocksndiamonds.git fixed saving already erased score tape --- diff --git a/src/game.c b/src/game.c index 78101bec..b85dbcae 100644 --- a/src/game.c +++ b/src/game.c @@ -5004,6 +5004,9 @@ void GameEnd(void) SaveLevelSetup_SeriesInfo(); } + // save score and score tape before potentially erasing tape below + highlight_position = NewHighScore(last_level_nr); + if (setup.increment_levels && level_nr < leveldir_current->last_level && !network_playing) @@ -5019,8 +5022,6 @@ void GameEnd(void) } } - highlight_position = NewHighScore(last_level_nr); - if (highlight_position >= 0 && setup.show_scores_after_game) { SetGameStatus(GAME_MODE_SCORES);