Fix #22876: Cannot build entrance for second Lift station

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2024-10-06 00:32:18 +02:00
1 parent 4404415aec
commit 5fd76fa62b
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ using namespace OpenRCT2;
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
constexpr uint8_t kNetworkStreamVersion = 4;
constexpr uint8_t kNetworkStreamVersion = 5;
const std::string kNetworkStreamID = std::string(OPENRCT2_VERSION) + "-" + std::to_string(kNetworkStreamVersion);
+2 -2
View File
@@ -1216,10 +1216,10 @@ void Ride::ValidateStations()
}
// update all the blocks with StationIndex
const auto& ted = GetTrackElementDescriptor(tileElement->AsTrack()->GetTrackType());
const auto& firstBlock = ted.sequences[0].clearance;
for (uint8_t i = 0; i < ted.numSequences; i++)
{
CoordsXYZ blockLocation = location + CoordsXYZ{ CoordsXY{ firstBlock.x, firstBlock.y }.Rotate(direction), 0 };
const auto& block = ted.sequences[i].clearance;
CoordsXYZ blockLocation = location + CoordsXYZ{ CoordsXY{ block.x, block.y }.Rotate(direction), 0 };
bool trackFound = false;
tileElement = MapGetFirstElementAt(blockLocation);