Base UNDEEP on the previiously unreferenced DEEP condition bit.

Removes the only dependency on the order of locations left in the macros.
This commit is contained in:
Eric S. Raymond 2022-04-18 10:01:14 -04:00
parent 846f293e06
commit d9d58ea168

View file

@ -81,7 +81,7 @@
#define FOREST(LOC) CNDBIT(LOC, COND_FOREST) #define FOREST(LOC) CNDBIT(LOC, COND_FOREST)
#define OUTSID(LOC) (CNDBIT(LOC, COND_ABOVE) || FOREST(LOC)) #define OUTSID(LOC) (CNDBIT(LOC, COND_ABOVE) || FOREST(LOC))
#define INSIDE(LOC) (!OUTSID(LOC) || LOC == LOC_BUILDING) #define INSIDE(LOC) (!OUTSID(LOC) || LOC == LOC_BUILDING)
#define INDEEP(LOC) ((LOC) >= LOC_MISTHALL && !OUTSID(LOC)) #define INDEEP(LOC) CNDBIT((LOC),COND_DEEP)
#define BUG(x) bug(x, #x) #define BUG(x) bug(x, #x)
enum bugtype { enum bugtype {