diff options
| author | Rangi42 <sylvie.oukaour+rangi42@gmail.com> | 2025-07-02 17:25:03 -0400 |
|---|---|---|
| committer | Rangi42 <sylvie.oukaour+rangi42@gmail.com> | 2025-07-02 17:25:03 -0400 |
| commit | aa85c0046d06b306d99e3b48460782ac04814975 (patch) | |
| tree | 2917e98c91c0ad8a00ce4c471b964bc5279c7746 /macros | |
| parent | Use more audio constants (diff) | |
| download | pokeyellow-aa85c0046d06b306d99e3b48460782ac04814975.tar.gz pokeyellow-aa85c0046d06b306d99e3b48460782ac04814975.tar.xz pokeyellow-aa85c0046d06b306d99e3b48460782ac04814975.zip | |
Define `MAX_WARP_EVENTS`
Diffstat (limited to 'macros')
| -rw-r--r-- | macros/scripts/maps.asm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/macros/scripts/maps.asm b/macros/scripts/maps.asm index 2837d0c0..63b41424 100644 --- a/macros/scripts/maps.asm +++ b/macros/scripts/maps.asm @@ -84,6 +84,8 @@ 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 |
