diff --git a/src/openrct2/editor.c b/src/openrct2/editor.c index 7213090e5e..1c898c675c 100644 --- a/src/openrct2/editor.c +++ b/src/openrct2/editor.c @@ -631,7 +631,8 @@ void game_command_edit_scenario_options(sint32* eax, sint32* ebx, sint32* ecx, s break; case EDIT_SCENARIOOPTIONS_SETPARKCHARGEENTRYFEE: - + gParkEntranceFee = max(MONEY(0, 00), min(MONEY(100, 00), *edx)); + window_invalidate_by_class(WC_PARK_INFORMATION); break; case EDIT_SCENARIOOPTIONS_SETFORBIDTREEREMOVAL: diff --git a/src/openrct2/windows/editor_scenario_options.c b/src/openrct2/windows/editor_scenario_options.c index 552b2f1dc3..b97db0f340 100644 --- a/src/openrct2/windows/editor_scenario_options.c +++ b/src/openrct2/windows/editor_scenario_options.c @@ -1249,7 +1249,15 @@ static void window_editor_scenario_options_park_mousedown(sint32 widgetIndex, rc break; case WIDX_ENTRY_PRICE_INCREASE: if (gParkEntranceFee < MONEY(100,00)) { - gParkEntranceFee += MONEY(1,00); + game_do_command( + 0, + GAME_COMMAND_FLAG_APPLY, + EDIT_SCENARIOOPTIONS_SETPARKCHARGEENTRYFEE, + gParkEntranceFee + MONEY(1,00), + GAME_COMMAND_EDIT_SCENARIO_OPTIONS, + 0, + 0 + ); } else { window_error_open(STR_CANT_INCREASE_FURTHER, STR_NONE); } @@ -1257,7 +1265,15 @@ static void window_editor_scenario_options_park_mousedown(sint32 widgetIndex, rc break; case WIDX_ENTRY_PRICE_DECREASE: if (gParkEntranceFee > MONEY(0,00)) { - gParkEntranceFee -= MONEY(1,00); + game_do_command( + 0, + GAME_COMMAND_FLAG_APPLY, + EDIT_SCENARIOOPTIONS_SETPARKCHARGEENTRYFEE, + gParkEntranceFee - MONEY(1,00), + GAME_COMMAND_EDIT_SCENARIO_OPTIONS, + 0, + 0 + ); } else { window_error_open(STR_CANT_REDUCE_FURTHER, STR_NONE); }