Use is_hole macro to check for trapdoors and holes
This commit is contained in:
+1
-2
@@ -1362,8 +1362,7 @@ doidtrap()
|
||||
break;
|
||||
tt = trap->ttyp;
|
||||
if (u.dz) {
|
||||
if (u.dz < 0 ? (tt == TRAPDOOR || tt == HOLE)
|
||||
: tt == ROCKTRAP)
|
||||
if (u.dz < 0 ? is_hole(tt) : tt == ROCKTRAP)
|
||||
break;
|
||||
}
|
||||
tt = what_trap(tt);
|
||||
|
||||
Reference in New Issue
Block a user