1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix errors in #10680 (#10692)

This commit is contained in:
Michael Steenbeek
2020-02-12 23:11:04 +01:00
committed by GitHub
parent 1b7639238a
commit e53d76ae2e
2 changed files with 2 additions and 2 deletions

View File

@@ -965,7 +965,7 @@ void Guest::Tick128UpdateGuest(int32_t index)
break; break;
if (tileElement->GetType() != TILE_ELEMENT_TYPE_PATH) if (tileElement->GetType() != TILE_ELEMENT_TYPE_PATH)
continue; continue;
if (tileElement->GetBaseZ() == NextLoc.z) if (tileElement->GetBaseZ() != NextLoc.z)
continue; continue;
// Check if the footpath has a queue line TV monitor on it // Check if the footpath has a queue line TV monitor on it

View File

@@ -1663,7 +1663,7 @@ static int32_t peep_update_patrolling_find_watering(Peep* peep)
continue; 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) if (z_diff >= 4 * COORDS_Z_STEP)
{ {