Use is_pit macro to check for (spiked) pit
This commit is contained in:
@@ -489,7 +489,7 @@ struct monst *mtmp;
|
||||
|
||||
/* kludge to cut down on trap destruction (particularly portals) */
|
||||
t = t_at(x, y);
|
||||
if (t && (t->ttyp == PIT || t->ttyp == SPIKED_PIT || t->ttyp == WEB
|
||||
if (t && (is_pit(t->ttyp) || t->ttyp == WEB
|
||||
|| t->ttyp == BEAR_TRAP))
|
||||
t = 0; /* ok for monster to dig here */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user