From 281cf137f4af63cc4c20b81d1e2b8b4f647c1c05 Mon Sep 17 00:00:00 2001 From: Henry Cheng <39224097+jazzysoggy@users.noreply.github.com> Date: Sun, 31 Jul 2022 17:51:08 -0400 Subject: [PATCH] Fix #17639: Duplicate special elements when building upside down --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/RideConstruction.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index f9c057fefb..831e51702a 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -25,6 +25,7 @@ - Fix: [#17542] Stalls will autorotate towards paths outside the park. - Fix: [#17553] Crash when moving invention list items to empty list. - Fix: [#17605] Crash when opening parks which have had objects removed externally. +- Fix: [#17639] When building upside down, the special elements list contains many items twice (original bug). 0.4.1 (2022-07-04) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index e34a4b06a1..a44c9e56cb 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -2108,7 +2108,8 @@ public: } } - if (bank == TRACK_BANK_UPSIDE_DOWN && bank != _previousTrackBankEnd) + if ((bank == TRACK_BANK_UPSIDE_DOWN || ted.Definition.bank_end == TRACK_BANK_UPSIDE_DOWN) + && bank != _previousTrackBankEnd) continue; _currentPossibleRideConfigurations[currentPossibleRideConfigurationIndex] = trackType;