Allow setting 'Guests at given date' in increments of 50, with a minimum of 250

This commit is contained in:
Gymnasiast 2015-07-28 19:17:25 +02:00
parent ea130a6126
commit 88f4185b3b
1 changed files with 3 additions and 3 deletions

View File

@ -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;