summaryrefslogtreecommitdiff
path: root/asm/macros
diff options
context:
space:
mode:
Diffstat (limited to 'asm/macros')
-rw-r--r--asm/macros/map.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/asm/macros/map.inc b/asm/macros/map.inc
index d903899fe..0f35bf959 100644
--- a/asm/macros/map.inc
+++ b/asm/macros/map.inc
@@ -88,3 +88,8 @@
map \map
.space 2
.endm
+
+ .macro map_header_flags allow_cycling:req, allow_escaping:req, allow_running:req, show_map_name:req
+ .byte \allow_cycling
+ .byte ((\show_map_name & 1) << 2) | ((\allow_running & 1) << 1) | ((\allow_escaping & 1) << 0)
+ .endm