From 93be8597e0d42202c1c862a31950ed1d22d7f59a Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 28 Feb 2024 16:44:08 +0100 Subject: [PATCH] renamed panel option "game.panel.gems_total" to "game.panel.gems_needed" --- src/conf_gfx.c | 20 ++++++++++---------- src/game.c | 12 ++++++------ src/game.h | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/conf_gfx.c b/src/conf_gfx.c index 7516968c..342504b0 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -9585,16 +9585,16 @@ struct ConfigInfo image_config[] = { "game.panel.gems.class", "none" }, { "game.panel.gems.style", "none" }, - { "game.panel.gems_total.x", "-1" }, - { "game.panel.gems_total.y", "-1" }, - { "game.panel.gems_total.align", "left" }, - { "game.panel.gems_total.valign", "top" }, - { "game.panel.gems_total.digits", "-1" }, - { "game.panel.gems_total.font", "font.text_2" }, - { "game.panel.gems_total.draw_masked", "true" }, - { "game.panel.gems_total.draw_order", "0" }, - { "game.panel.gems_total.class", "none" }, - { "game.panel.gems_total.style", "none" }, + { "game.panel.gems_needed.x", "-1" }, + { "game.panel.gems_needed.y", "-1" }, + { "game.panel.gems_needed.align", "left" }, + { "game.panel.gems_needed.valign", "top" }, + { "game.panel.gems_needed.digits", "-1" }, + { "game.panel.gems_needed.font", "font.text_2" }, + { "game.panel.gems_needed.draw_masked", "true" }, + { "game.panel.gems_needed.draw_order", "0" }, + { "game.panel.gems_needed.class", "none" }, + { "game.panel.gems_needed.style", "none" }, { "game.panel.gems_collected.x", "-1" }, { "game.panel.gems_collected.y", "-1" }, diff --git a/src/game.c b/src/game.c index b050950d..3a9a7736 100644 --- a/src/game.c +++ b/src/game.c @@ -89,7 +89,7 @@ // game panel display and control definitions #define GAME_PANEL_LEVEL_NUMBER 0 #define GAME_PANEL_GEMS 1 -#define GAME_PANEL_GEMS_TOTAL 2 +#define GAME_PANEL_GEMS_NEEDED 2 #define GAME_PANEL_GEMS_COLLECTED 3 #define GAME_PANEL_GEMS_SCORE 4 #define GAME_PANEL_INVENTORY_COUNT 5 @@ -246,8 +246,8 @@ static struct GamePanelControlInfo game_panel_controls[] = TYPE_INTEGER, }, { - GAME_PANEL_GEMS_TOTAL, - &game.panel.gems_total, + GAME_PANEL_GEMS_NEEDED, + &game.panel.gems_needed, TYPE_INTEGER, }, { @@ -2291,10 +2291,10 @@ static void UpdateGameControlValues(void) level.game_engine_type == GAME_ENGINE_TYPE_MM ? game_mm.kettles_still_needed : game.gems_still_needed); - int gems_total = level.gems_needed; + int gems_needed = level.gems_needed; int gems_collected = (level.game_engine_type == GAME_ENGINE_TYPE_BD ? game_bd.game->cave->diamonds_collected : - gems_total - gems); + gems_needed - gems); int gems_score = (level.game_engine_type == GAME_ENGINE_TYPE_BD ? game_bd.game->cave->diamond_value : level.score[SC_EMERALD]); @@ -2325,7 +2325,7 @@ static void UpdateGameControlValues(void) // used instead of "level_nr" (for network games) game_panel_controls[GAME_PANEL_LEVEL_NUMBER].value = levelset.level_nr; game_panel_controls[GAME_PANEL_GEMS].value = gems; - game_panel_controls[GAME_PANEL_GEMS_TOTAL].value = gems_total; + game_panel_controls[GAME_PANEL_GEMS_NEEDED].value = gems_needed; game_panel_controls[GAME_PANEL_GEMS_COLLECTED].value = gems_collected; game_panel_controls[GAME_PANEL_GEMS_SCORE].value = gems_score; diff --git a/src/game.h b/src/game.h index 83c7f00c..4e86e106 100644 --- a/src/game.h +++ b/src/game.h @@ -52,7 +52,7 @@ struct GamePanelInfo { struct TextPosInfo level_number; struct TextPosInfo gems; - struct TextPosInfo gems_total; + struct TextPosInfo gems_needed; struct TextPosInfo gems_collected; struct TextPosInfo gems_score; struct TextPosInfo inventory_count; -- 2.34.1