Fix #17639: Duplicate special elements when building upside down

This commit is contained in:
Henry Cheng 2022-07-31 17:51:08 -04:00 committed by GitHub
parent a68f8e8467
commit 281cf137f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -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;