Fix #2881 Disable banking for steep to flat track

This commit is contained in:
danidoedel 2016-02-04 21:07:45 +01:00
parent 55aa203aa7
commit 217047c1a6
1 changed files with 6 additions and 0 deletions

View File

@ -720,6 +720,12 @@ static void window_ride_construction_resize(rct_window *w)
(1ULL << WIDX_BANK_STRAIGHT) |
(1ULL << WIDX_BANK_RIGHT);
}
// Disable banking if the start track is steep and the end of the track becomes flat.
if ((_previousTrackSlopeEnd == TRACK_SLOPE_DOWN_60 || _previousTrackSlopeEnd == TRACK_SLOPE_UP_60) && _currentTrackSlopeEnd == TRACK_SLOPE_NONE) {
disabledWidgets |=
(1ULL << WIDX_BANK_LEFT) |
(1ULL << WIDX_BANK_RIGHT);
}
if (!is_track_enabled(TRACK_SLOPE) && !is_track_enabled(TRACK_SLOPE_STEEP)) {
if (rideType != RIDE_TYPE_REVERSE_FREEFALL_COASTER && rideType != RIDE_TYPE_AIR_POWERED_VERTICAL_COASTER) {
// Disable all slopes