From 425fc73979da9cccd7d101fc45a716625d3f898f Mon Sep 17 00:00:00 2001 From: Josue Acevedo Date: Sat, 18 Jun 2016 09:13:17 -0500 Subject: [PATCH] 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. --- src/windows/ride_construction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/ride_construction.c b/src/windows/ride_construction.c index 7307ccbfb2..409f4a5a3d 100644 --- a/src/windows/ride_construction.c +++ b/src/windows/ride_construction.c @@ -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 {