#17735 Track elements are listed twice when building backwards

Fix: Instead of checking whether bank has the value TRACK_BANK_UPSIDE_DOWN, instead check bank_start, as bank is not guaranteed to be bank_start.
This commit is contained in:
Henry Cheng authored and GitHub committed 2022-09-06 23:21:22 +02:00
1 parent 9578c514d2
commit 121f121d4e
2 files changed
+3 -4

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@
- Fix: [#17571] All researched tracked rides show up as new vehicles in .park scenarios.
- Fix: [#17600] Notifications are not properly cleared when loading a park.
- 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).
- Fix: [#17639, 17735] When building upside down, the special elements list contains many items twice (original bug).
- Fix: [#17703] (undefined string) when building on invalid height.
- Fix: [#17776] “Other Parks” tab uses separate lists for SC4/SC6 and .park scenarios.
- Fix: [#17784] Colour preset RNG is biased (original bug).
+2 -3
View File
@@ -2114,9 +2114,8 @@ public:
}
}
}
if ((bank == TRACK_BANK_UPSIDE_DOWN || ted.Definition.bank_end == TRACK_BANK_UPSIDE_DOWN)
&& bank != _previousTrackBankEnd)
if ((ted.Definition.bank_start == TRACK_BANK_UPSIDE_DOWN || ted.Definition.bank_end == TRACK_BANK_UPSIDE_DOWN)
&& (bank != _previousTrackBankEnd))
continue;
_currentPossibleRideConfigurations[currentPossibleRideConfigurationIndex] = trackType;