1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Apply review request

This commit is contained in:
Gymnasiast
2020-03-12 15:27:58 +01:00
parent ba49850195
commit 9fd2b883a8

View File

@@ -2754,8 +2754,9 @@ Peep* find_closest_mechanic(int32_t x, int32_t y, int32_t forInspection)
continue;
}
if (map_is_location_in_park({ x, y }))
if (!peep->AsStaff()->IsLocationInPatrol({ x & 0xFFE0, y & 0xFFE0 }))
auto location = CoordsXY(x, y).ToTileStart();
if (map_is_location_in_park(location))
if (!peep->AsStaff()->IsLocationInPatrol(location))
continue;
if (peep->x == LOCATION_NULL)