From 50a1f588eca1e25715d29d9a30b1eb16abc8afc4 Mon Sep 17 00:00:00 2001 From: LRFLEW Date: Wed, 2 Sep 2015 21:51:04 -0600 Subject: [PATCH] Disable chain button on steep slopes that cannot have one --- src/windows/ride_construction.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/windows/ride_construction.c b/src/windows/ride_construction.c index 5a2480a890..e43d2083ec 100644 --- a/src/windows/ride_construction.c +++ b/src/windows/ride_construction.c @@ -493,7 +493,7 @@ static int ride_get_alternative_type(rct_ride *ride) { return _currentTrackCovered & 2 ? RCT2_ADDRESS(0x0097D4F5, uint8)[ride->type * 8] : - ride->type;; + ride->type; } /** @@ -945,6 +945,11 @@ static void window_ride_construction_resize(rct_window *w) if (_currentTrackSlopeEnd == TRACK_SLOPE_UP_90 || _previousTrackSlopeEnd == TRACK_SLOPE_UP_90) { disabledWidgets |= (1ULL << WIDX_CHAIN_LIFT); } + if (!is_track_enabled(TRACK_LIFT_HILL_STEEP)) { + if (_previousTrackSlopeEnd == TRACK_SLOPE_UP_60 || _currentTrackSlopeEnd == TRACK_SLOPE_UP_60) { + disabledWidgets |= (1ULL << WIDX_CHAIN_LIFT); + } + } if (_previousTrackBankEnd == TRACK_BANK_UPSIDE_DOWN) { disabledWidgets |= (1ULL << WIDX_LEFT_CURVE_SMALL) |