From a8efcef15b203c3dd0bd4d8240a9887dd01a9b31 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Mon, 4 Apr 2016 19:17:32 +0100 Subject: [PATCH] Fix issue with handymen finding litter on the z axis different to vanilla Issue caused by implementation mistake. Fixes remaining issue of #3125. --- src/peep/staff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peep/staff.c b/src/peep/staff.c index 0e436f47e2..b5019b23df 100644 --- a/src/peep/staff.c +++ b/src/peep/staff.c @@ -576,7 +576,7 @@ static uint8 staff_handyman_direction_to_nearest_litter(rct_peep* peep){ uint16 distance = abs(litter->x - peep->x) + abs(litter->y - peep->y) + - abs(litter->z - peep->z) / 4; + abs(litter->z - peep->z) * 4; if (distance < nearestLitterDist){ nearestLitterDist = distance;