Fix issue with handymen finding litter on the z axis different to vanilla

Issue caused by implementation mistake. Fixes remaining issue of #3125.
This commit is contained in:
duncanspumpkin 2016-04-04 19:17:32 +01:00
parent 68d21e22a1
commit a8efcef15b
1 changed files with 1 additions and 1 deletions

View File

@ -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;