aboutsummaryrefslogtreecommitdiffstats
path: root/macros/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'macros/scripts')
-rw-r--r--macros/scripts/maps.asm8
1 files changed, 6 insertions, 2 deletions
diff --git a/macros/scripts/maps.asm b/macros/scripts/maps.asm
index 63b41424..49150c6e 100644
--- a/macros/scripts/maps.asm
+++ b/macros/scripts/maps.asm
@@ -72,6 +72,12 @@ ENDM
;\1 source map
MACRO def_warps_to
+ ASSERT {_NUM_WARP_EVENTS} <= MAX_WARP_EVENTS, \
+ "Too many warp_events (above {d:MAX_WARP_EVENTS})!"
+ ASSERT {_NUM_BG_EVENTS} <= MAX_BG_EVENTS, \
+ "Too many bg_events (above {d:MAX_BG_EVENTS})!"
+ ASSERT {_NUM_OBJECT_EVENTS} <= MAX_OBJECT_EVENTS, \
+ "Too many object_events (above {d:MAX_OBJECT_EVENTS})!"
; text ID values are significant (see DisplayTextID in home/text_scripts.asm)
FOR n, {_NUM_BG_EVENTS}
ASSERT {_BG_EVENT_{d:n}_TEXT_ID} > {_NUM_OBJECT_EVENTS}, \
@@ -84,8 +90,6 @@ MACRO def_warps_to
FOR n, {_NUM_WARP_EVENTS}
warp_to _WARP_{d:n}_X, _WARP_{d:n}_Y, \1_WIDTH
ENDR
- ASSERT {_NUM_WARP_EVENTS} <= MAX_WARP_EVENTS, \
- "Too many warp_events (above {d:MAX_WARP_EVENTS})!"
ENDM
;\1 x position