1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00

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

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

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)
------------------------------------------------------------------------

View File

@@ -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)
{