Use u_at macro
This commit is contained in:
@@ -755,7 +755,7 @@ ghod_hitsu(struct monst *priest)
|
||||
ay = y = EPRI(priest)->shrpos.y;
|
||||
troom = &g.rooms[roomno - ROOMOFFSET];
|
||||
|
||||
if ((u.ux == x && u.uy == y) || !linedup(u.ux, u.uy, x, y, 1)) {
|
||||
if (u_at(x, y) || !linedup(u.ux, u.uy, x, y, 1)) {
|
||||
if (IS_DOOR(levl[u.ux][u.uy].typ)) {
|
||||
if (u.ux == troom->lx - 1) {
|
||||
x = troom->hx;
|
||||
|
||||
Reference in New Issue
Block a user