mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #2752 from Broxzier/fix_money_invalidation
Fix #2750 invalidate top toolbar when toggling the use of money.
This commit is contained in:
commit
80550ca365
|
@ -446,8 +446,7 @@ static void window_editor_scenario_options_financial_mouseup(rct_window *w, int
|
||||||
case WIDX_NO_MONEY:
|
case WIDX_NO_MONEY:
|
||||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_SCENARIO_EDITOR) {
|
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) & SCREEN_FLAGS_SCENARIO_EDITOR) {
|
||||||
RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) ^= PARK_FLAGS_NO_MONEY_SCENARIO;
|
RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) ^= PARK_FLAGS_NO_MONEY_SCENARIO;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) ^= PARK_FLAGS_NO_MONEY;
|
RCT2_GLOBAL(RCT2_ADDRESS_PARK_FLAGS, uint32) ^= PARK_FLAGS_NO_MONEY;
|
||||||
// Invalidate all windows that have anything to do with finance
|
// Invalidate all windows that have anything to do with finance
|
||||||
window_invalidate_by_class(WC_RIDE);
|
window_invalidate_by_class(WC_RIDE);
|
||||||
|
@ -455,6 +454,7 @@ static void window_editor_scenario_options_financial_mouseup(rct_window *w, int
|
||||||
window_invalidate_by_class(WC_PARK_INFORMATION);
|
window_invalidate_by_class(WC_PARK_INFORMATION);
|
||||||
window_invalidate_by_class(WC_FINANCES);
|
window_invalidate_by_class(WC_FINANCES);
|
||||||
window_invalidate_by_class(WC_BOTTOM_TOOLBAR);
|
window_invalidate_by_class(WC_BOTTOM_TOOLBAR);
|
||||||
|
window_invalidate_by_class(WC_TOP_TOOLBAR);
|
||||||
}
|
}
|
||||||
window_invalidate(w);
|
window_invalidate(w);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue