1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Fix #22606: Virtual floor at wrong height for paths

This commit is contained in:
Michael Bernardi
2024-08-30 02:22:30 +10:00
parent dff7d3a930
commit c2a69b3c5c

View File

@@ -173,7 +173,7 @@ money64 FootpathProvisionalSet(
VirtualFloorSetHeight(0);
}
else if (
gFootpathConstructSlope == kTileSlopeFlat || gProvisionalFootpath.Position.z < gFootpathConstructFromPosition.z)
gProvisionalFootpath.Slope == kTileSlopeFlat || gProvisionalFootpath.Position.z < gFootpathConstructFromPosition.z)
{
// Going either straight on, or down.
VirtualFloorSetHeight(gProvisionalFootpath.Position.z);