mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 00:34:46 +01:00
Fix calculating wide path status (#22827)
* Fix calculating wide path status * Increment kNetworkStreamVersion * Add comment regarding excluded tile ratio * Add changelog entry
This commit is contained in:
@@ -1596,6 +1596,11 @@ void FootpathUpdatePathWideFlags(const CoordsXY& footpathPos)
|
||||
// FootpathClearWide(x, y);
|
||||
// y -= 0x20;
|
||||
|
||||
// Only consider approx. 1/8 of tiles for wide path status
|
||||
// (NB: the other 7/8 do get cleared above!)
|
||||
if (!(footpathPos.x & 0xE0) || (!(footpathPos.y & 0xE0)))
|
||||
return;
|
||||
|
||||
TileElement* tileElement = MapGetFirstElementAt(footpathPos);
|
||||
if (tileElement == nullptr)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user