follow-up for dig_check changes
Use the is_hole() macro to cover off holes and trapdoors.
This commit is contained in:
@@ -234,7 +234,7 @@ dig_check(struct monst *madeby, coordxy x, coordxy y)
|
||||
return DIGCHECK_FAIL_UNDESTROYABLETRAP;
|
||||
} else if (!Can_dig_down(&u.uz) && !levl[x][y].candig) {
|
||||
if (ttmp) {
|
||||
if (ttmp->ttyp != HOLE && !is_pit(ttmp->ttyp))
|
||||
if (!is_hole(ttmp->ttyp) && !is_pit(ttmp->ttyp))
|
||||
return DIGCHECK_PASSED_DESTROY_TRAP;
|
||||
else
|
||||
return DIGCHECK_FAIL_CANTDIG;
|
||||
|
||||
Reference in New Issue
Block a user