Use u_at macro
This commit is contained in:
@@ -486,5 +486,7 @@ struct you {
|
||||
|
||||
/* point px,py is adjacent to (or same location as) hero */
|
||||
#define next2u(px,py) (distu((px),(py)) <= 2)
|
||||
/* hero at (x,y)? */
|
||||
#define u_at(x,y) ((x) == u.ux && (y) == u.uy)
|
||||
|
||||
#endif /* YOU_H */
|
||||
|
||||
Reference in New Issue
Block a user