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 authored and Ted John committed 2016-06-18 15:13:17 +01:00
1 parent 42029c031a
commit 425fc73979
1 file changed
+1 -1
+1 -1
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 {