Use macro unhideable_trap
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user