From 12167e3b595432bc038254f6776d6219e7aa77a0 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 21 Jan 2025 19:49:48 +0100 Subject: [PATCH] fixed flickering panel score when playing BD games with multiple lives This change fixes displaying the cave score for one single frame when playing BD games with multiple lives, therefore using global scores. --- src/game.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/game.c b/src/game.c index 162e56a1..b8299fb5 100644 --- a/src/game.c +++ b/src/game.c @@ -5029,6 +5029,10 @@ void InitAmoebaNr(int x, int y) static void LevelSolved_UpdateFinalGameValues(int time, int score, int health) { + // correct game panel score value when playing BD games with multiple lives + if (level.game_engine_type == GAME_ENGINE_TYPE_BD && setup.bd_multiple_lives) + score = game_bd.global_score; + game.LevelSolved_CountingTime = time; game.LevelSolved_CountingScore = score; game.LevelSolved_CountingHealth = health; @@ -5205,9 +5209,6 @@ static boolean GameWon(void) time = time_final; score = score_final; - if (level.game_engine_type == GAME_ENGINE_TYPE_BD && setup.bd_multiple_lives) - score = game_bd.global_score; - LevelSolved_DisplayFinalGameValues(time, score, health); } -- 2.34.1