From d9d58ea168e53d93c527b2d302893c230a690480 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 18 Apr 2022 10:01:14 -0400 Subject: [PATCH] Base UNDEEP on the previiously unreferenced DEEP condition bit. Removes the only dependency on the order of locations left in the macros. --- advent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advent.h b/advent.h index c740c53..a2c1eb0 100644 --- a/advent.h +++ b/advent.h @@ -81,7 +81,7 @@ #define FOREST(LOC) CNDBIT(LOC, COND_FOREST) #define OUTSID(LOC) (CNDBIT(LOC, COND_ABOVE) || FOREST(LOC)) #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) enum bugtype { -- 2.31.1