From: Holger Schemel Date: Thu, 26 Sep 2024 21:12:17 +0000 (+0200) Subject: fixed showing number of BD diamonds needed if determined at run-time X-Git-Tag: 4.4.0.0-test-4~191 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5ab780bcb0c4282d72d21a617de3c3ac6d31701a;p=rocksndiamonds.git fixed showing number of BD diamonds needed if determined at run-time --- diff --git a/src/game.c b/src/game.c index c8989ce3..d6f1927e 100644 --- a/src/game.c +++ b/src/game.c @@ -2331,7 +2331,9 @@ static void UpdateGameControlValues(void) level.game_engine_type == GAME_ENGINE_TYPE_MM ? game_mm.kettles_still_needed : game.gems_still_needed); - int gems_needed = level.gems_needed; + int gems_needed = (level.game_engine_type == GAME_ENGINE_TYPE_BD ? + game_bd.game->cave->diamonds_needed : + level.gems_needed); int gems_collected = (level.game_engine_type == GAME_ENGINE_TYPE_BD ? game_bd.game->cave->diamonds_collected : gems_needed - gems);