1
0
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:
Kevin Strehl
2023-04-01 00:44:22 -06:00
committed by GitHub
parent 3dcd7b6a5c
commit 1174063c27
2 changed files with 2 additions and 1 deletions

View File

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