From b77f1285a48e98cd24654911758e43e7d7885b8d Mon Sep 17 00:00:00 2001 From: Richard Fine Date: Sat, 5 Jan 2019 19:48:12 +0000 Subject: [PATCH] Reformat --- src/openrct2/peep/Staff.cpp | 3 +-- src/openrct2/world/Footpath.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/openrct2/peep/Staff.cpp b/src/openrct2/peep/Staff.cpp index 5503f6f96a..8301405fb5 100644 --- a/src/openrct2/peep/Staff.cpp +++ b/src/openrct2/peep/Staff.cpp @@ -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(peep->next_x + CoordsDirectionDelta[direction].x), diff --git a/src/openrct2/world/Footpath.cpp b/src/openrct2/world/Footpath.cpp index cd3f37fb2a..1b9b39fc98 100644 --- a/src/openrct2/world/Footpath.cpp +++ b/src/openrct2/world/Footpath.cpp @@ -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;