summaryrefslogtreecommitdiff
path: root/asm/macros
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-12-26 12:20:15 -0600
committerGitHub <noreply@github.com>2018-12-26 12:20:15 -0600
commita1ea3b5e394bc115ba9b86348c161094a00dcca7 (patch)
treec2e389fa4bf9f134079c9b4a5e23a8077281e2d0 /asm/macros
parent7480a41cfe9b7d871e7217e4f46378fa4ccda8cd (diff)
Use map_header_flags macro (#483)
Diffstat (limited to 'asm/macros')
-rw-r--r--asm/macros/map.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/asm/macros/map.inc b/asm/macros/map.inc
index 94caeb697..c98364ccc 100644
--- a/asm/macros/map.inc
+++ b/asm/macros/map.inc
@@ -101,3 +101,7 @@
map \map
.space 2
.endm
+
+ .macro map_header_flags allow_bike:req, allow_escape_rope:req, allow_run:req, show_map_name:req
+ .byte ((\show_map_name & 1) << 3) | ((\allow_run & 1) << 2) | ((\allow_escape_rope & 1) << 1) | \allow_bike
+ .endm