Remove unnecessary macro that wasn't ideally named
Also add a comment that states the intent.
This commit is contained in:
@@ -104,7 +104,6 @@ enum levl_typ_types {
|
|||||||
#define IS_WALL(typ) ((typ) && (typ) <= DBWALL)
|
#define IS_WALL(typ) ((typ) && (typ) <= DBWALL)
|
||||||
#define IS_STWALL(typ) ((typ) <= DBWALL) /* STONE <= (typ) <= DBWALL */
|
#define IS_STWALL(typ) ((typ) <= DBWALL) /* STONE <= (typ) <= DBWALL */
|
||||||
#define IS_OBSTRUCTED(typ) ((typ) < POOL) /* absolutely nonaccessible */
|
#define IS_OBSTRUCTED(typ) ((typ) < POOL) /* absolutely nonaccessible */
|
||||||
#define IS_CORR(typ) ((typ) == CORR || (typ) == SCORR)
|
|
||||||
#define IS_SDOOR(typ) ((typ) == SDOOR)
|
#define IS_SDOOR(typ) ((typ) == SDOOR)
|
||||||
#define IS_DOOR(typ) ((typ) == DOOR)
|
#define IS_DOOR(typ) ((typ) == DOOR)
|
||||||
#define IS_DOORJOIN(typ) (IS_OBSTRUCTED(typ) || (typ) == IRONBARS)
|
#define IS_DOORJOIN(typ) (IS_OBSTRUCTED(typ) || (typ) == IRONBARS)
|
||||||
|
|||||||
+2
-1
@@ -3101,7 +3101,8 @@ check_pos(coordxy x, coordxy y, int which)
|
|||||||
if (!isok(x, y))
|
if (!isok(x, y))
|
||||||
return which;
|
return which;
|
||||||
type = levl[x][y].typ;
|
type = levl[x][y].typ;
|
||||||
if (IS_STWALL(type) || IS_CORR(type) || IS_SDOOR(type))
|
/* Everything below POOL, excluding TREE */
|
||||||
|
if (IS_STWALL(type) || (type) == CORR || (type) == SCORR || IS_SDOOR(type))
|
||||||
return which;
|
return which;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user