summaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'map.h')
-rw-r--r--map.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/map.h b/map.h
index f9cff89e2..5e5b395e1 100644
--- a/map.h
+++ b/map.h
@@ -7,6 +7,7 @@
#define TILE_XY(x,y) (((y) << MapLogX()) + (x))
#define TILE_MASK(x) ((x) & ((1 << (MapLogX() + MapLogY())) - 1))
+#define TILE_ASSERT(x) assert(TILE_MASK(x) == (x));
extern byte *_map_type_and_height;
extern byte *_map_owner;