1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Fix #22876: Cannot build entrance for second Lift station

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

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

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