Use u_at macro

This commit is contained in:
Pasi Kallinen
2022-02-23 20:28:35 +02:00
parent 2635c60280
commit 8e91320d2f
40 changed files with 126 additions and 130 deletions

View File

@@ -394,7 +394,7 @@ tactics(struct monst *mtmp)
if (!targ) { /* simply wants you to close */
return 0;
}
if ((u.ux == tx && u.uy == ty) || where == STRAT_PLAYER) {
if (u_at(tx, ty) || where == STRAT_PLAYER) {
/* player is standing on it (or has it) */
mnexto(mtmp, RLOC_MSG);
return 0;