fixed saving already erased score tape
authorHolger Schemel <info@artsoft.org>
Sat, 24 Apr 2021 23:18:28 +0000 (01:18 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 1 May 2021 13:38:30 +0000 (15:38 +0200)
src/game.c

index 78101becf1c76f8e48e12a5ef252c4344c753350..b85dbcae9861dfcae7df2d211ed5a51e2aeba768 100644 (file)
@@ -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);