1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Use calls to set queue from track designs

This commit is contained in:
Michael Steenbeek
2018-10-05 13:56:31 +02:00
parent 687fbc2a0a
commit db3c2fcc46

View File

@@ -406,8 +406,10 @@ static money32 footpath_element_update(
footpath_remove_edges_at(x, y, tileElement);
tileElement->AsPath()->SetEntryIndex(type);
tileElement->type = (tileElement->type & 0xFE) | (type >> 7);
if (type & (1 << 7))
tileElement->AsPath()->SetIsQueue(true);
else
tileElement->AsPath()->SetIsQueue(false);
tileElement->AsPath()->SetAddition(pathItemType);
tileElement->flags &= ~TILE_ELEMENT_FLAG_BROKEN;
@@ -663,8 +665,8 @@ static money32 footpath_place_from_track(
pathElement->SetSlopeDirection(slope & FOOTPATH_PROPERTIES_SLOPE_DIRECTION_MASK);
if (slope & FOOTPATH_PROPERTIES_FLAG_IS_SLOPED)
pathElement->SetSloped(true);
tileElement->type |= type >> 7;
if (type & (1 << 7))
tileElement->AsPath()->SetIsQueue(true);
pathElement->SetAddition(0);
tileElement->AsPath()->SetRideIndex(RIDE_ID_NULL);
tileElement->AsPath()->SetAdditionStatus(255);