Use is_hole macro to check for trapdoors and holes
This commit is contained in:
@@ -84,5 +84,6 @@ enum trap_types {
|
||||
};
|
||||
|
||||
#define is_pit(ttyp) ((ttyp) == PIT || (ttyp) == SPIKED_PIT)
|
||||
#define is_hole(ttyp) ((ttyp) == HOLE || (ttyp) == TRAPDOOR)
|
||||
|
||||
#endif /* TRAP_H */
|
||||
|
||||
Reference in New Issue
Block a user