mirror of https://github.com/OpenRCT2/OpenRCT2.git
Sync "Raise / lower cost to buy construction rights"
This commit is contained in:
parent
5616b1f260
commit
e5fac3c765
|
@ -625,7 +625,7 @@ void game_command_edit_scenario_options(sint32* eax, sint32* ebx, sint32* ecx, s
|
|||
gLandPrice = max(MONEY(5, 00), min(MONEY(200, 00), *edx));
|
||||
break;
|
||||
case EDIT_SCENARIOOPTIONS_SETCOSTTOBUYCONSTRUCTIONRIGHTS:
|
||||
|
||||
gLandRightsCost = max(MONEY(5,00), min(MONEY(200,00), *edx));
|
||||
break;
|
||||
case EDIT_SCENARIOOPTIONS_SETPARKCHARGEMETHOD:
|
||||
|
||||
|
|
|
@ -1217,7 +1217,15 @@ static void window_editor_scenario_options_park_mousedown(sint32 widgetIndex, rc
|
|||
break;
|
||||
case WIDX_CONSTRUCTION_RIGHTS_COST_INCREASE:
|
||||
if (gConstructionRightsPrice < MONEY(200,00)) {
|
||||
gConstructionRightsPrice += MONEY(1,00);
|
||||
game_do_command(
|
||||
0,
|
||||
GAME_COMMAND_FLAG_APPLY,
|
||||
EDIT_SCENARIOOPTIONS_SETCOSTTOBUYCONSTRUCTIONRIGHTS,
|
||||
gConstructionRightsPrice + MONEY(1,00),
|
||||
GAME_COMMAND_EDIT_SCENARIO_OPTIONS,
|
||||
0,
|
||||
0
|
||||
);
|
||||
} else {
|
||||
window_error_open(STR_CANT_INCREASE_FURTHER, STR_NONE);
|
||||
}
|
||||
|
@ -1225,7 +1233,15 @@ static void window_editor_scenario_options_park_mousedown(sint32 widgetIndex, rc
|
|||
break;
|
||||
case WIDX_CONSTRUCTION_RIGHTS_COST_DECREASE:
|
||||
if (gConstructionRightsPrice > MONEY(5,00)) {
|
||||
gConstructionRightsPrice -= MONEY(1,00);
|
||||
game_do_command(
|
||||
0,
|
||||
GAME_COMMAND_FLAG_APPLY,
|
||||
EDIT_SCENARIOOPTIONS_SETCOSTTOBUYCONSTRUCTIONRIGHTS,
|
||||
gConstructionRightsPrice - MONEY(1,00),
|
||||
GAME_COMMAND_EDIT_SCENARIO_OPTIONS,
|
||||
0,
|
||||
0
|
||||
);
|
||||
} else {
|
||||
window_error_open(STR_CANT_REDUCE_FURTHER, STR_NONE);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue