mirror of https://github.com/OpenRCT2/OpenRCT2.git
Reformat
This commit is contained in:
parent
e90e9dd73f
commit
b77f1285a4
|
@ -1137,8 +1137,7 @@ static uint8_t staff_direction_surface(rct_peep* peep, uint8_t initialDirection)
|
|||
if (fence_in_the_way(peep->next_x, peep->next_y, peep->next_z, peep->next_z + 4, direction) == true)
|
||||
continue;
|
||||
|
||||
if (fence_in_the_way(peep->next_x, peep->next_y, peep->next_z, peep->next_z + 4, direction_reverse(direction))
|
||||
== true)
|
||||
if (fence_in_the_way(peep->next_x, peep->next_y, peep->next_z, peep->next_z + 4, direction_reverse(direction)) == true)
|
||||
continue;
|
||||
|
||||
LocationXY16 chosenTile = { static_cast<int16_t>(peep->next_x + CoordsDirectionDelta[direction].x),
|
||||
|
|
|
@ -1384,7 +1384,8 @@ static void loc_6A6D7E(
|
|||
}
|
||||
if (z - 2 == tileElement->base_height)
|
||||
{
|
||||
if (!tileElement->AsPath()->IsSloped() || tileElement->AsPath()->GetSlopeDirection() != direction_reverse(direction))
|
||||
if (!tileElement->AsPath()->IsSloped()
|
||||
|| tileElement->AsPath()->GetSlopeDirection() != direction_reverse(direction))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -1406,7 +1407,8 @@ static void loc_6A6D7E(
|
|||
{
|
||||
return;
|
||||
}
|
||||
uint16_t dx = direction_reverse((direction - tileElement->GetDirection()) & TILE_ELEMENT_DIRECTION_MASK);
|
||||
uint16_t dx = direction_reverse(
|
||||
(direction - tileElement->GetDirection()) & TILE_ELEMENT_DIRECTION_MASK);
|
||||
if (!(FlatRideTrackSequenceProperties[trackType][trackSequence] & (1 << dx)))
|
||||
{
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue