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));
|
gLandPrice = max(MONEY(5, 00), min(MONEY(200, 00), *edx));
|
||||||
break;
|
break;
|
||||||
case EDIT_SCENARIOOPTIONS_SETCOSTTOBUYCONSTRUCTIONRIGHTS:
|
case EDIT_SCENARIOOPTIONS_SETCOSTTOBUYCONSTRUCTIONRIGHTS:
|
||||||
|
gLandRightsCost = max(MONEY(5,00), min(MONEY(200,00), *edx));
|
||||||
break;
|
break;
|
||||||
case EDIT_SCENARIOOPTIONS_SETPARKCHARGEMETHOD:
|
case EDIT_SCENARIOOPTIONS_SETPARKCHARGEMETHOD:
|
||||||
|
|
||||||
|
|
|
@ -1217,7 +1217,15 @@ static void window_editor_scenario_options_park_mousedown(sint32 widgetIndex, rc
|
||||||
break;
|
break;
|
||||||
case WIDX_CONSTRUCTION_RIGHTS_COST_INCREASE:
|
case WIDX_CONSTRUCTION_RIGHTS_COST_INCREASE:
|
||||||
if (gConstructionRightsPrice < MONEY(200,00)) {
|
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 {
|
} else {
|
||||||
window_error_open(STR_CANT_INCREASE_FURTHER, STR_NONE);
|
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;
|
break;
|
||||||
case WIDX_CONSTRUCTION_RIGHTS_COST_DECREASE:
|
case WIDX_CONSTRUCTION_RIGHTS_COST_DECREASE:
|
||||||
if (gConstructionRightsPrice > MONEY(5,00)) {
|
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 {
|
} else {
|
||||||
window_error_open(STR_CANT_REDUCE_FURTHER, STR_NONE);
|
window_error_open(STR_CANT_REDUCE_FURTHER, STR_NONE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue