mirror of https://github.com/OpenRCT2/OpenRCT2.git
Sync "Set forbid marketing campaigns"
This commit is contained in:
parent
2a8481bd48
commit
d21d500b4a
|
@ -586,7 +586,12 @@ void game_command_edit_scenario_options(sint32* eax, sint32* ebx, sint32* ecx, s
|
|||
window_invalidate_by_class(WC_FINANCES);
|
||||
break;
|
||||
case EDIT_SCENARIOOPTIONS_SETFORBIDMARKETINGCAMPAIGNS:
|
||||
|
||||
if (*edx != FALSE) {
|
||||
gParkFlags |= PARK_FLAGS_FORBID_MARKETING_CAMPAIGN;
|
||||
}
|
||||
else {
|
||||
gParkFlags &= ~PARK_FLAGS_FORBID_MARKETING_CAMPAIGN;
|
||||
}
|
||||
break;
|
||||
case EDIT_SCENARIOOPTIONS_SETAVERAGECASHPERGUEST:
|
||||
|
||||
|
|
|
@ -512,7 +512,15 @@ static void window_editor_scenario_options_financial_mouseup(rct_window *w, sint
|
|||
window_invalidate(w);
|
||||
break;
|
||||
case WIDX_FORBID_MARKETING:
|
||||
gParkFlags ^= PARK_FLAGS_FORBID_MARKETING_CAMPAIGN;
|
||||
game_do_command(
|
||||
0,
|
||||
GAME_COMMAND_FLAG_APPLY,
|
||||
EDIT_SCENARIOOPTIONS_SETFORBIDMARKETINGCAMPAIGNS,
|
||||
gParkFlags & PARK_FLAGS_FORBID_MARKETING_CAMPAIGN ? FALSE : TRUE,
|
||||
GAME_COMMAND_EDIT_SCENARIO_OPTIONS,
|
||||
0,
|
||||
0
|
||||
);
|
||||
window_invalidate(w);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue