summaryrefslogtreecommitdiff
path: root/engine/routines/newpokedexentry.asm
diff options
context:
space:
mode:
authorRemy Oukaour <remy.oukaour@gmail.com>2018-01-16 17:59:05 -0500
committerRemy Oukaour <remy.oukaour@gmail.com>2018-01-16 17:59:05 -0500
commit5407d8de920b779d760d88153d8e314a687d100e (patch)
treeac02431d341b67242aa7531852da9ef126977582 /engine/routines/newpokedexentry.asm
parent50ce0a219ef291099aa3aa43a177bcea2807d97b (diff)
Cleaner Pokédex code
Diffstat (limited to 'engine/routines/newpokedexentry.asm')
-rw-r--r--engine/routines/newpokedexentry.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/routines/newpokedexentry.asm b/engine/routines/newpokedexentry.asm
index acf9fca7b..122688eff 100644
--- a/engine/routines/newpokedexentry.asm
+++ b/engine/routines/newpokedexentry.asm
@@ -11,13 +11,13 @@ NewPokedexEntry: ; fb877
ld a, [wPokedexStatus]
push af
ld a, [hSCX]
- add $5
+ add POKDEX_SCX
ld [hSCX], a
xor a
ld [wPokedexStatus], a
farcall _NewPokedexEntry
call WaitPressAorB_BlinkCursor
- ld a, $1
+ ld a, 1 ; page 2
ld [wPokedexStatus], a
farcall DisplayDexEntry
call WaitPressAorB_BlinkCursor
@@ -26,7 +26,7 @@ NewPokedexEntry: ; fb877
call MaxVolume
call RotateThreePalettesRight
ld a, [hSCX]
- add -5 ; 251 ; NUM_POKEMON
+ add -POKDEX_SCX
ld [hSCX], a
call .ReturnFromDexRegistration
pop af