Use u_at macro
This commit is contained in:
@@ -349,7 +349,7 @@ do_earthquake(int force)
|
||||
if ((otmp = sobj_at(BOULDER, x, y)) != 0) {
|
||||
if (cansee(x, y))
|
||||
pline("KADOOM! The boulder falls into a chasm%s!",
|
||||
(x == u.ux && y == u.uy) ? " below you" : "");
|
||||
u_at(x, y) ? " below you" : "");
|
||||
if (mtmp)
|
||||
mtmp->mtrapped = 0;
|
||||
obj_extract_self(otmp);
|
||||
@@ -391,7 +391,7 @@ do_earthquake(int force)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (x == u.ux && y == u.uy) {
|
||||
} else if (u_at(x, y)) {
|
||||
if (u.utrap && u.utraptype == TT_BURIEDBALL) {
|
||||
/* Note: the chain should break if a pit gets
|
||||
created at the buried ball's location, which
|
||||
|
||||
Reference in New Issue
Block a user