From e53d76ae2e97c64cdcf5c03af5720b7501483fcb Mon Sep 17 00:00:00 2001 From: Michael Steenbeek Date: Wed, 12 Feb 2020 23:11:04 +0100 Subject: [PATCH] Fix errors in #10680 (#10692) --- src/openrct2/peep/Guest.cpp | 2 +- src/openrct2/peep/Staff.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index b7acd797eba5..266fdd631626 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -965,7 +965,7 @@ void Guest::Tick128UpdateGuest(int32_t index) break; if (tileElement->GetType() != TILE_ELEMENT_TYPE_PATH) continue; - if (tileElement->GetBaseZ() == NextLoc.z) + if (tileElement->GetBaseZ() != NextLoc.z) continue; // Check if the footpath has a queue line TV monitor on it diff --git a/src/openrct2/peep/Staff.cpp b/src/openrct2/peep/Staff.cpp index f6e96a65efe2..67365c5dc0d3 100644 --- a/src/openrct2/peep/Staff.cpp +++ b/src/openrct2/peep/Staff.cpp @@ -1663,7 +1663,7 @@ static int32_t peep_update_patrolling_find_watering(Peep* peep) continue; } - uint8_t z_diff = abs(peep->NextLoc.z - tile_element->GetBaseZ()); + auto z_diff = abs(peep->NextLoc.z - tile_element->GetBaseZ()); if (z_diff >= 4 * COORDS_Z_STEP) {