mirror of https://github.com/OpenRCT2/OpenRCT2.git
Sync "Raise / lower initial guest thirst"
This commit is contained in:
parent
6baf971eba
commit
33bc414bab
|
@ -603,7 +603,7 @@ void game_command_edit_scenario_options(sint32* eax, sint32* ebx, sint32* ecx, s
|
|||
gGuestInitialHunger = max(40, min(250, *edx));
|
||||
break;
|
||||
case EDIT_SCENARIOOPTIONS_SETGUESTINITIALTHIRST:
|
||||
|
||||
gGuestInitialThirst = max(40, min(250, *edx));
|
||||
break;
|
||||
case EDIT_SCENARIOOPTIONS_SETGUESTSPREFERLESSINTENSERIDES:
|
||||
|
||||
|
|
|
@ -959,7 +959,15 @@ static void window_editor_scenario_options_guests_mousedown(sint32 widgetIndex,
|
|||
break;
|
||||
case WIDX_GUEST_INITIAL_THIRST_INCREASE:
|
||||
if (gGuestInitialThirst > 40) {
|
||||
gGuestInitialThirst -= 4;
|
||||
game_do_command(
|
||||
0,
|
||||
GAME_COMMAND_FLAG_APPLY,
|
||||
EDIT_SCENARIOOPTIONS_SETGUESTINITIALTHIRST,
|
||||
gGuestInitialThirst - 4,
|
||||
GAME_COMMAND_EDIT_SCENARIO_OPTIONS,
|
||||
0,
|
||||
0
|
||||
);
|
||||
} else {
|
||||
window_error_open(STR_CANT_INCREASE_FURTHER, STR_NONE);
|
||||
}
|
||||
|
@ -967,7 +975,15 @@ static void window_editor_scenario_options_guests_mousedown(sint32 widgetIndex,
|
|||
break;
|
||||
case WIDX_GUEST_INITIAL_THIRST_DECREASE:
|
||||
if (gGuestInitialThirst < 250) {
|
||||
gGuestInitialThirst += 4;
|
||||
game_do_command(
|
||||
0,
|
||||
GAME_COMMAND_FLAG_APPLY,
|
||||
EDIT_SCENARIOOPTIONS_SETGUESTINITIALTHIRST,
|
||||
gGuestInitialThirst + 4,
|
||||
GAME_COMMAND_EDIT_SCENARIO_OPTIONS,
|
||||
0,
|
||||
0
|
||||
);
|
||||
} else {
|
||||
window_error_open(STR_CANT_REDUCE_FURTHER, STR_NONE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue