Implement #7459: Allow opening and closing of parks that use no mone

This commit is contained in:
deurklink 2018-05-07 19:48:47 +02:00 committed by Michael Steenbeek
parent 0df569f0e2
commit 0d332cdf68
2 changed files with 2 additions and 3 deletions

View File

@ -8,6 +8,7 @@
- Feature: [#7316] Cheat to allow freezing all staff
- Feature: [#7332] Keyboard shortcuts for view path issues and cutaway view.
- Feature: [#7348] Add large half loops to the Vertical Drop Roller Coaster.
- Feature: [#7459] Allow opening and closing of parks that use no money.
- Fix: [#2611] Some objects show (undefined string) instead of a description in Korean.
- Fix: [#3596] Saving parks, landscapes and tracks with a period in the filenames don't get their extension.
- Fix: [#5210] Default system dialog not accessible from saving landscape window.

View File

@ -775,9 +775,7 @@ static void window_park_entrance_invalidate(rct_window *w)
window_park_entrance_widgets[WIDX_OPEN_LIGHT].image = SPR_G2_RCT1_OPEN_BUTTON_0 + park_is_open() * 2 + widget_is_pressed(w, WIDX_OPEN_LIGHT);
// Only allow closing of park for guest / rating objective
// Only allow closing of park when there is money
if (gScenarioObjectiveType == OBJECTIVE_GUESTS_AND_RATING ||
(gParkFlags & PARK_FLAGS_NO_MONEY))
if (gScenarioObjectiveType == OBJECTIVE_GUESTS_AND_RATING)
w->disabled_widgets |= (1 << WIDX_OPEN_OR_CLOSE) | (1 << WIDX_CLOSE_LIGHT) | (1 << WIDX_OPEN_LIGHT);
else
w->disabled_widgets &= ~((1 << WIDX_OPEN_OR_CLOSE) | (1 << WIDX_CLOSE_LIGHT) | (1 << WIDX_OPEN_LIGHT));