diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-03-03 14:19:16 -0500 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-03-03 14:19:16 -0500 |
| commit | 79dc22c769a5a84b561884508e2643747cf9ec08 (patch) | |
| tree | eb94f2465355e1ea7988e7d6bc77baf0140e3dbb /engine | |
| parent | dc396822d7e69764402fa3673eb1fee95cd3122e (diff) | |
Define constants for map event sizes
Diffstat (limited to 'engine')
| -rw-r--r-- | engine/events/checkforhiddenitems.asm | 2 | ||||
| -rw-r--r-- | engine/overworld/events.asm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/events/checkforhiddenitems.asm b/engine/events/checkforhiddenitems.asm index c0d31fe24..c71bd2905 100644 --- a/engine/events/checkforhiddenitems.asm +++ b/engine/events/checkforhiddenitems.asm @@ -60,7 +60,7 @@ CheckForHiddenItems: .next ; Restore the bg_event pointer and increment it by the length of a bg_event. pop hl - ld bc, 5 + ld bc, BG_EVENT_SIZE add hl, bc ; Restore the BG event counter and decrement it. If it hits zero, there are no hidden items in range. ld a, [wBuffer2] diff --git a/engine/overworld/events.asm b/engine/overworld/events.asm index ec81f1c27..fe2c51560 100644 --- a/engine/overworld/events.asm +++ b/engine/overworld/events.asm @@ -418,7 +418,7 @@ RunSceneScript: ld a, [hli] ld h, [hl] ld l, a -rept 4 +rept SCENE_SCRIPT_SIZE add hl, de endr |
