From 73ac8ba1975a3af4cf7cb42594e864bf3e2a589b Mon Sep 17 00:00:00 2001 From: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com> Date: Wed, 26 Feb 2025 21:56:32 +0100 Subject: [PATCH] Fix #4225: Ride Construction window offers non-existent banked sloped to level curve --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/RideConstruction.cpp | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 8242898ac3..93c27134c3 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -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) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 772e70ac37..5b89937260 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -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) {