From faca234055372488f1af12073b2edb7c3d58d120 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 23 Jul 2024 16:22:30 -0400 Subject: [PATCH] follow-up for dig_check changes Use the is_hole() macro to cover off holes and trapdoors. --- src/dig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dig.c b/src/dig.c index e1ec1439f..92d7cd771 100644 --- a/src/dig.c +++ b/src/dig.c @@ -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;