Skip to content

Commit

Permalink
Fix #18720: Can build upward helix on Alpine Coaster
Browse files Browse the repository at this point in the history
  • Loading branch information
X123M3-256 committed Dec 4, 2022
1 parent 7602eb6 commit 3dfe1ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/openrct2-ui/windows/RideConstruction.cpp
Expand Up @@ -2119,6 +2119,15 @@ class RideConstructionWindow final : public Window
&& (bank != _previousTrackBankEnd))
continue;

if (currentRide->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_UP_INCLINE_REQUIRES_LIFT)
&& !gCheatsEnableAllDrawableTrackPieces
&& ((
trackType == TrackElemType::LeftHalfBankedHelixUpSmall
|| trackType == TrackElemType::RightHalfBankedHelixUpSmall
|| trackType == TrackElemType::LeftHalfBankedHelixUpLarge
|| trackType == TrackElemType::RightHalfBankedHelixUpLarge)))
continue;

_currentPossibleRideConfigurations[currentPossibleRideConfigurationIndex] = trackType;
_currentDisabledSpecialTrackPieces |= (1uLL << currentPossibleRideConfigurationIndex);
if (_currentTrackPieceDirection < 4 && slope == _previousTrackSlopeEnd && bank == _previousTrackBankEnd
Expand Down

0 comments on commit 3dfe1ee

Please sign in to comment.