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:
committed by
GitHub
parent
4404415aec
commit
5fd76fa62b
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user