1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

#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
2022-09-06 17:21:22 -04:00
committed by GitHub
parent 9578c514d2
commit 121f121d4e
2 changed files with 3 additions and 4 deletions

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;