summaryrefslogtreecommitdiff
path: root/src/scenes/world_map.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-11-30 17:38:09 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-11-30 17:38:09 +0100
commit3d8003241bfd02caf37b2bac97c3b213b2991c59 (patch)
tree3c4bfafa559353be392cc791956f5b9a7609a74e /src/scenes/world_map.c
parent5603b2b4d767d03859299a1615819297cea8a900 (diff)
close #24
Diffstat (limited to 'src/scenes/world_map.c')
-rw-r--r--src/scenes/world_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scenes/world_map.c b/src/scenes/world_map.c
index ec42a7b..7ceb34b 100644
--- a/src/scenes/world_map.c
+++ b/src/scenes/world_map.c
@@ -736,11 +736,11 @@ static s32 world_map_push_invest_panel_item(s32 x, s32 y, s32 w, s32 index, char
renderer->render_text(fnt, content_x, content_y, text, COLOR_TEXT);
// Button decrease simulation speed
if (push_info_panel_button(scale, img_arrow_left, button_left_x, btn_y, btn_size, *fval > 0, false)) {
- *fval -= 100.0f;
+ *fval -= INVESTMENT_INCREMENT;
}
// Button increase simulation speed
if (push_info_panel_button(scale, img_arrow_right, button_left_x+total_val_editor_w-btn_size, btn_y, btn_size, true, false)) {
- *fval += 100.0f;
+ *fval += INVESTMENT_INCREMENT;
}
s32 item_text_w = renderer->calculate_text_width(fnt, value_str);
s32 item_text_x = button_left_x + (total_val_editor_w/2) - (item_text_w/2);