mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
Improve check whether path is connected (#19788)
This commit is contained in:
@@ -703,7 +703,7 @@ bool MapCoordIsConnected(const TileCoordsXYZ& loc, uint8_t faceDirection)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (loc.z == tileElement->BaseHeight)
|
||||
if (loc.z == tileElement->BaseHeight && (tileElement->AsPath()->GetEdges() & (1 << faceDirection)))
|
||||
return true;
|
||||
}
|
||||
} while (!(tileElement++)->IsLastForTile());
|
||||
|
||||
Reference in New Issue
Block a user