summaryrefslogtreecommitdiff
path: root/include/global.fieldmap.h
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2020-01-08 05:43:06 -0500
committerGriffinR <griffin.g.richards@gmail.com>2020-01-08 05:43:06 -0500
commitef67f2d33b45348d76d722f250cdbcc8485be264 (patch)
tree2fb5d08a962dea3329bcd876ea2d237cf8c6d3c1 /include/global.fieldmap.h
parent68cdd7b1cb5a293b3de42185fe17d85b4067b3ad (diff)
Merge master into ObjEvent rename and prune accidental inclusions
Diffstat (limited to 'include/global.fieldmap.h')
-rw-r--r--include/global.fieldmap.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/global.fieldmap.h b/include/global.fieldmap.h
index 5b12568fd..af2be9c77 100644
--- a/include/global.fieldmap.h
+++ b/include/global.fieldmap.h
@@ -143,6 +143,16 @@ struct MapHeader
/* 0x1B */ u8 battleType;
};
+// Flags for gMapHeader.flags, as defined in the map_header_flags macro
+#define MAP_ALLOW_BIKE (1 << 0)
+#define MAP_ALLOW_ESCAPE_ROPE (1 << 1)
+#define MAP_ALLOW_RUN (1 << 2)
+#define MAP_SHOW_MAP_NAME (1 << 3)
+#define UNUSED_MAP_FLAGS (1 << 4 | 1 << 5 | 1 << 6 | 1 << 7)
+
+#define SHOW_MAP_NAME_ENABLED ((gMapHeader.flags & (MAP_SHOW_MAP_NAME | UNUSED_MAP_FLAGS)) == MAP_SHOW_MAP_NAME)
+
+
struct ObjectEvent
{
/*0x00*/ u32 active:1;