From 88f4185b3b64744b2f5aa6a7ca079620d9233b21 Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 28 Jul 2015 19:17:25 +0200 Subject: [PATCH] Allow setting 'Guests at given date' in increments of 50, with a minimum of 250 --- src/windows/editor_objective_options.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/windows/editor_objective_options.c b/src/windows/editor_objective_options.c index df340dcbf0..f9524e77f9 100644 --- a/src/windows/editor_objective_options.c +++ b/src/windows/editor_objective_options.c @@ -590,7 +590,7 @@ static void window_editor_objective_options_arg_1_increase(rct_window *w) if (RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_NUM_GUESTS, uint16) >= 5000) { window_error_open(3264, STR_NONE); } else { - RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_NUM_GUESTS, uint16) += 100; + RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_NUM_GUESTS, uint16) += 50; window_invalidate(w); } break; @@ -635,10 +635,10 @@ static void window_editor_objective_options_arg_1_decrease(rct_window *w) } break; default: - if (RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_NUM_GUESTS, uint16) <= 500) { + if (RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_NUM_GUESTS, uint16) <= 250) { window_error_open(3265, STR_NONE); } else { - RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_NUM_GUESTS, uint16) -= 100; + RCT2_GLOBAL(RCT2_ADDRESS_OBJECTIVE_NUM_GUESTS, uint16) -= 50; window_invalidate(w); } break;