1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix #3839: Chains can be set on stores if 'Allowing chain lifts for all pieces' is on

Show widget if the ride has track when the cheat is enabled
This stops the chain lift button showing for shops and flat rides.
This commit is contained in:
Josue Acevedo
2016-06-18 09:13:17 -05:00
committed by Ted John
parent 42029c031a
commit 425fc73979

View File

@@ -3075,7 +3075,7 @@ static void window_ride_construction_update_widgets(rct_window *w)
}
int x;
if ((is_track_enabled(TRACK_LIFT_HILL) && _currentTrackCurve < 256) || gCheatsEnableChainLiftOnAllTrack) {
if ((is_track_enabled(TRACK_LIFT_HILL) && _currentTrackCurve < 256) || (gCheatsEnableChainLiftOnAllTrack && ride_type_has_flag(ride->type, RIDE_TYPE_FLAG_HAS_TRACK))) {
window_ride_construction_widgets[WIDX_CHAIN_LIFT].type = WWT_FLATBTN;
x = 9;
} else {