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

@@ -1891,9 +1891,9 @@ mfndpos(
continue;
info[cnt] |= ALLOW_SSM;
}
if ((nx == u.ux && ny == u.uy)
if (u_at(nx, ny)
|| (nx == mon->mux && ny == mon->muy)) {
if (nx == u.ux && ny == u.uy) {
if (u_at(nx, ny)) {
/* If it's right next to you, it found you,
* displaced or no. We must set mux and muy
* right now, so when we return we can tell