diff options
| author | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-31 15:55:39 -0400 |
|---|---|---|
| committer | pikalaxalt <PikalaxALT@gmail.com> | 2016-05-31 15:55:39 -0400 |
| commit | 439efda1ba940b010786be1186007355adf23965 (patch) | |
| tree | 0becd0b5980b180a0abd11377d1ed35ae3814bda /engine/overworld/missable_objects.asm | |
| parent | Hall of Fame Room (TEH URN) (diff) | |
| download | pokeyellow-439efda1ba940b010786be1186007355adf23965.tar.gz pokeyellow-439efda1ba940b010786be1186007355adf23965.tar.xz pokeyellow-439efda1ba940b010786be1186007355adf23965.zip | |
Champion's room; resolve predefs
Diffstat (limited to 'engine/overworld/missable_objects.asm')
| -rw-r--r-- | engine/overworld/missable_objects.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/overworld/missable_objects.asm b/engine/overworld/missable_objects.asm index 65305d30..1cc15be5 100644 --- a/engine/overworld/missable_objects.asm +++ b/engine/overworld/missable_objects.asm @@ -30,17 +30,17 @@ MarkTownVisitedAndLoadMissableObjects: ; ef93 (3:6f93) ld a, h ld [H_DIVIDEND], a ld a, l - ld [H_DIVIDEND+1], a + ld [H_DIVIDEND + 1], a xor a - ld [H_DIVIDEND+2], a - ld [H_DIVIDEND+3], a + ld [H_DIVIDEND + 2], a + ld [H_DIVIDEND + 3], a ld a, $3 ld [H_DIVISOR], a ld b, $2 call Divide ; divide difference by 3, resulting in the global offset (number of missable items before ours) ld a, [wCurMap] ld b, a - ld a, [H_DIVIDEND+3] + ld a, [H_DIVIDEND + 3] ld c, a ; store global offset in c ld de, wMissableObjectList pop hl |
