From: Holger Schemel Date: Tue, 21 Jan 2025 18:49:48 +0000 (+0100) Subject: fixed flickering panel score when playing BD games with multiple lives X-Git-Tag: 4.4.0.3~11 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=12167e3b595432bc038254f6776d6219e7aa77a0;p=rocksndiamonds.git 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. --- 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); }