Skip to content

Commit

Permalink
Fix errors in #10680 (#10692)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Feb 12, 2020
1 parent 1b76392 commit e53d76a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/openrct2/peep/Guest.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/openrct2/peep/Staff.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit e53d76a

Please sign in to comment.