diff options
author | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-17 08:40:42 -0400 |
---|---|---|
committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-17 08:40:56 -0400 |
commit | 98f443f70c60f8fdbcf8621ab2c4f9dd37c66bde (patch) | |
tree | 42dc1cc21f8916c6d6ffe3b503fffddc4cab68cf /engine/events_3.asm | |
parent | 2eeb78d1bcecf09b2a48035dc24c19a726c41819 (diff) |
engine/events.asm labels finished
fixed palred/green/blue macros
Diffstat (limited to 'engine/events_3.asm')
-rwxr-xr-x | engine/events_3.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/events_3.asm b/engine/events_3.asm index dfcf60e73..e3e197adf 100755 --- a/engine/events_3.asm +++ b/engine/events_3.asm @@ -276,13 +276,13 @@ CheckForHiddenItems: ; b8172 ; Checks to see if there are hidden items on the screen that have not yet been found. If it finds one, returns carry. call GetMapScriptHeaderBank ld [Buffer1], a -; Get the coordinate of the bottom right corner of the screen, and load it in wd1ec/wd1ed. +; Get the coordinate of the bottom right corner of the screen, and load it in Buffer3/Buffer4. ld a, [XCoord] add SCREEN_WIDTH / 4 - ld [wd1ed], a + ld [Buffer4], a ld a, [YCoord] add SCREEN_HEIGHT / 4 - ld [wd1ec], a + ld [Buffer3], a ; Get the pointer for the first signpost header in the map... ld hl, wCurrentMapSignpostHeaderPointer ld a, [hli] @@ -301,7 +301,7 @@ CheckForHiddenItems: ; b8172 call .GetFarByte ld e, a ; Is the Y coordinate of the signpost on the screen? If not, go to the next signpost. - ld a, [wd1ec] + ld a, [Buffer3] sub e jr c, .next cp SCREEN_HEIGHT / 2 @@ -309,7 +309,7 @@ CheckForHiddenItems: ; b8172 ; Is the X coordinate of the signpost on the screen? If not, go to the next signpost. call .GetFarByte ld d, a - ld a, [wd1ed] + ld a, [Buffer4] sub d jr c, .next cp SCREEN_WIDTH / 2 |