GDIST
nearer = GDIST(nx, ny);
nearer -= GDIST(nix, niy);
&& GDIST(omx, omy) < 3) {
(appr && (zz = GDIST(nix, niy)) && zz > GDIST(nx, ny))
(appr && GDIST(nx, ny) < GDIST(nix, niy))