mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Improve check whether path is connected (#19788)
This commit is contained in:
parent
3dcd7b6a5c
commit
1174063c27
2 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
------------------------------------------------------------------------
|
||||
- Fix: [#19296] Crash due to a race condition for parallel object loading.
|
||||
- Fix: [#19756] Crash with title sequences containing no commands.
|
||||
- Fix: [#19767] No message when path is not connected to ride exit and is therefore unreachable for mechanics.
|
||||
|
||||
0.4.4 (2023-03-28)
|
||||
------------------------------------------------------------------------
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue