replaced code with equivalent function call
authorHolger Schemel <info@artsoft.org>
Tue, 21 Jan 2025 18:30:33 +0000 (19:30 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 21 Jan 2025 17:33:06 +0000 (18:33 +0100)
src/game.c

index a47129c71ef04b6283af77326eb89d2140e8fb1c..162e56a1b2d1b87386d943d20be0e403e7eca38b 100644 (file)
@@ -5055,9 +5055,7 @@ static void LevelSolved_SetFinalGameValues(void)
                       MM_HEALTH(game_mm.laser_overload_value) :
                       game.health);
 
-  game.LevelSolved_CountingTime = game.time_final;
-  game.LevelSolved_CountingScore = game.score_final;
-  game.LevelSolved_CountingHealth = game.health_final;
+  LevelSolved_UpdateFinalGameValues(game.time_final, game.score_final, game.health_final);
 }
 
 static void LevelSolved_DisplayFinalGameValues(int time, int score, int health)