1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix #8236: Paths of track designs are built incorrectly

This commit is contained in:
Michael Steenbeek
2018-11-08 22:13:44 +01:00
committed by GitHub
parent 223ae74c6b
commit 94ce57929a

View File

@@ -670,6 +670,7 @@ static money32 footpath_place_from_track(
pathElement->SetAddition(0);
tileElement->AsPath()->SetRideIndex(RIDE_ID_NULL);
tileElement->AsPath()->SetAdditionStatus(255);
tileElement->AsPath()->SetEdges(edges);
tileElement->AsPath()->SetCorners(0);
pathElement->flags &= ~TILE_ELEMENT_FLAG_BROKEN;
if (flags & (1 << 6))
@@ -2712,4 +2713,4 @@ uint8_t PathElement::GetEdgesAndCorners() const
void PathElement::SetEdgesAndCorners(uint8_t newEdgesAndCorners)
{
edges = newEdgesAndCorners;
}
}