summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2016-08-12 13:41:52 -0500
committerdannye <corrnondacqb@yahoo.com>2016-08-12 13:41:52 -0500
commit3feff214d6ce2e3c6b4ae504c50bcdf09b47eac9 (patch)
treeb5c62e6af4cac0ee4a2031da318750241131b313 /home.asm
parentaa1e3eac34137d88d6bc1df4fac6f32ceab404b6 (diff)
Remove redundant index conversionpokedex-order
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm11
1 files changed, 0 insertions, 11 deletions
diff --git a/home.asm b/home.asm
index dbe7899f..26f95d16 100644
--- a/home.asm
+++ b/home.asm
@@ -269,18 +269,8 @@ LoadFlippedFrontSpriteByMonIndex::
ld [wSpriteFlipped], a
LoadFrontSpriteByMonIndex::
- push hl
- ld a, [wd11e]
- push af
ld a, [wcf91]
- ld [wd11e], a
- predef IndexToPokedex
- ld hl, wd11e
- ld a, [hl]
- pop bc
- ld [hl], b
and a
- pop hl
jr z, .invalidDexNumber ; dex #0 invalid
cp NUM_POKEMON + 1
jr c, .validDexNumber ; dex >#151 invalid
@@ -578,7 +568,6 @@ GetMonHeader::
jr z,.specialID
cp a,MEW
jr z,.mew
- predef IndexToPokedex ; convert pokemon ID in [wd11e] to pokedex number
ld a,[wd11e]
dec a
ld bc, MonBaseStatsEnd - MonBaseStats