Home
last modified time | relevance | path

Searched refs:GDIST (Results 1 – 2 of 2) sorted by relevance

/openbsd/games/hack/
H A Dhack.shk.c998 #define GDIST(x,y) ((x-gx)*(x-gx)+(y-gy)*(y-gy)) in shk_move() macro
1018 && GDIST(omx,omy) < 3){ in shk_move()
1061 (appr && (zz = GDIST(nix,niy)) && zz > GDIST(nx,ny)) in shk_move()
1063 (appr && GDIST(nx,ny) < GDIST(nix,niy)) in shk_move()
H A Dhack.dog.c200 #define GDIST(x,y) ((x-gx)*(x-gx) + (y-gy)*(y-gy)) in dog_move() macro
411 nearer = GDIST(nx,ny); in dog_move()
412 nearer -= GDIST(nix,niy); in dog_move()