summaryrefslogtreecommitdiff
path: root/asm/macros/map.inc
diff options
context:
space:
mode:
Diffstat (limited to 'asm/macros/map.inc')
-rw-r--r--asm/macros/map.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/asm/macros/map.inc b/asm/macros/map.inc
index d903899fe..881ffdbb4 100644
--- a/asm/macros/map.inc
+++ b/asm/macros/map.inc
@@ -14,9 +14,10 @@
.4byte \address
.endm
- .macro object_event index:req, gfx:req, x:req, y:req, elevation:req, movement_type:req, x_radius:req, y_radius:req, trainer_type:req, sight_radius_tree_etc:req, script:req, event_flag:req
+ .macro object_event index:req, gfx:req, in_connection:req x:req, y:req, elevation:req, movement_type:req, x_radius:req, y_radius:req, trainer_type:req, sight_radius_tree_etc:req, script:req, event_flag:req
.byte \index
- .2byte \gfx
+ .byte \gfx
+ .byte \in_connection
.byte 0
.2byte \x, \y
.byte \elevation, \movement_type, ((\y_radius << 4) | \x_radius), 0
@@ -88,3 +89,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