diff --git a/src/openrct2/editor.c b/src/openrct2/editor.c index 28acd3ba9e..92d755309d 100644 --- a/src/openrct2/editor.c +++ b/src/openrct2/editor.c @@ -600,7 +600,7 @@ void game_command_edit_scenario_options(sint32* eax, sint32* ebx, sint32* ecx, s gGuestInitialHappiness = max(40, min(250, *edx)); break; case EDIT_SCENARIOOPTIONS_SETGUESTINITIALHUNGER: - + gGuestInitialHunger = max(40, min(250, *edx)); break; case EDIT_SCENARIOOPTIONS_SETGUESTINITIALTHIRST: diff --git a/src/openrct2/windows/editor_scenario_options.c b/src/openrct2/windows/editor_scenario_options.c index 17a9d8817a..c7fc804a19 100644 --- a/src/openrct2/windows/editor_scenario_options.c +++ b/src/openrct2/windows/editor_scenario_options.c @@ -927,7 +927,15 @@ static void window_editor_scenario_options_guests_mousedown(sint32 widgetIndex, break; case WIDX_GUEST_INITIAL_HUNGER_INCREASE: if (gGuestInitialHunger > 40) { - gGuestInitialHunger -= 4; + game_do_command( + 0, + GAME_COMMAND_FLAG_APPLY, + EDIT_SCENARIOOPTIONS_SETGUESTINITIALHUNGER, + gGuestInitialHunger - 4, + GAME_COMMAND_EDIT_SCENARIO_OPTIONS, + 0, + 0 + ); } else { window_error_open(STR_CANT_INCREASE_FURTHER, STR_NONE); } @@ -935,7 +943,15 @@ static void window_editor_scenario_options_guests_mousedown(sint32 widgetIndex, break; case WIDX_GUEST_INITIAL_HUNGER_DECREASE: if (gGuestInitialHunger < 250) { - gGuestInitialHunger += 4; + game_do_command( + 0, + GAME_COMMAND_FLAG_APPLY, + EDIT_SCENARIOOPTIONS_SETGUESTINITIALHUNGER, + gGuestInitialHunger + 4, + GAME_COMMAND_EDIT_SCENARIO_OPTIONS, + 0, + 0 + ); } else { window_error_open(STR_CANT_REDUCE_FURTHER, STR_NONE); }