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

@@ -1432,7 +1432,7 @@ movebubbles(void)
mon->mx = mon->my = 0;
mon->mstate |= MON_BUBBLEMOVE;
}
if (!u.uswallow && x == u.ux && y == u.uy) {
if (!u.uswallow && u_at(x, y)) {
cons = (struct container *) alloc(sizeof *cons);
cons->x = x;
cons->y = y;