Use macro unhideable_trap

This commit is contained in:
Pasi Kallinen
2022-07-18 13:27:39 +03:00
parent 06efa695be
commit aa09f3eef5
3 changed files with 3 additions and 2 deletions

View File

@@ -101,6 +101,7 @@ enum { Trap_Effect_Finished = 0,
#define is_pit(ttyp) ((ttyp) == PIT || (ttyp) == SPIKED_PIT)
#define is_hole(ttyp) ((ttyp) == HOLE || (ttyp) == TRAPDOOR)
#define unhideable_trap(ttyp) ((ttyp) == HOLE) /* visible traps */
#define undestroyable_trap(ttyp) ((ttyp) == MAGIC_PORTAL \
|| (ttyp) == VIBRATING_SQUARE)
#define is_magical_trap(ttyp) ((ttyp) == TELEP_TRAP \