mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
68d21e22a1
commit
a8efcef15b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue