From 5ab780bcb0c4282d72d21a617de3c3ac6d31701a Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 26 Sep 2024 23:12:17 +0200 Subject: [PATCH] fixed showing number of BD diamonds needed if determined at run-time --- src/game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.34.1