rename IS_ROCK() macro to IS_OBSTRUCTED()
It has included trees since they were added, so give it a more fitting name.
This commit is contained in:
@@ -103,9 +103,9 @@ enum levl_typ_types {
|
||||
*/
|
||||
#define IS_WALL(typ) ((typ) && (typ) <= DBWALL)
|
||||
#define IS_STWALL(typ) ((typ) <= DBWALL) /* STONE <= (typ) <= DBWALL */
|
||||
#define IS_ROCK(typ) ((typ) < POOL) /* absolutely nonaccessible */
|
||||
#define IS_OBSTRUCTED(typ) ((typ) < POOL) /* absolutely nonaccessible */
|
||||
#define IS_DOOR(typ) ((typ) == DOOR)
|
||||
#define IS_DOORJOIN(typ) (IS_ROCK(typ) || (typ) == IRONBARS)
|
||||
#define IS_DOORJOIN(typ) (IS_OBSTRUCTED(typ) || (typ) == IRONBARS)
|
||||
#define IS_TREE(typ) \
|
||||
((typ) == TREE || (svl.level.flags.arboreal && (typ) == STONE))
|
||||
#define ACCESSIBLE(typ) ((typ) >= DOOR) /* good position */
|
||||
|
||||
Reference in New Issue
Block a user