Fix #4225: Ride Construction window offers non-existent banked sloped to level curve

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2025-02-26 21:56:32 +01:00
1 parent 3cd693cc78
commit 73ac8ba197
2 files changed
+7

No files matched your search

+1
View File
@@ -1,5 +1,6 @@
0.4.21 (in development)
------------------------------------------------------------------------
- Fix: [#4225] Ride Construction window offers non-existent banked sloped to level curve.
0.4.20 (2025-02-25)
------------------------------------------------------------------------
@@ -669,6 +669,12 @@ namespace OpenRCT2::Ui::Windows
{
disabledWidgets |= (1uLL << WIDX_CHAIN_LIFT);
}
// Ensures that you can build an "unbanking turn", but not select a turn that start banked and
// turns to level (as that does not exist).
if (_currentTrackRollEnd != TrackRoll::None && _currentTrackPitchEnd != TrackPitch::None)
{
disabledWidgets |= (1uLL << WIDX_LEVEL);
}
}
if (_currentTrackPitchEnd == TrackPitch::Up90 || _previousTrackPitchEnd == TrackPitch::Up90)
{