summaryrefslogtreecommitdiff
path: root/engine/palettes.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-08-23 23:21:54 -0500
committerdannye <corrnondacqb@yahoo.com>2015-08-23 23:21:54 -0500
commit9b0b36bf3c57b02552d140f465c97172c71a0085 (patch)
treedc5c14d14d979ecb7aee0ca92d78541eb15995f6 /engine/palettes.asm
parentd9eea7dd660eeb428717f21861ef5f05e1a74418 (diff)
Remove redundant index conversionpokedex-order
Diffstat (limited to 'engine/palettes.asm')
-rwxr-xr-xengine/palettes.asm8
1 files changed, 0 insertions, 8 deletions
diff --git a/engine/palettes.asm b/engine/palettes.asm
index 55d488aa..bfeee54e 100755
--- a/engine/palettes.asm
+++ b/engine/palettes.asm
@@ -274,14 +274,6 @@ DeterminePaletteID: ; 71f97 (1c:5f97)
ret nz
ld a, [hl]
DeterminePaletteIDOutOfBattle: ; 71f9d (1c:5f9d)
- ld [wd11e], a
- and a ; is the mon index 0?
- jr z, .skipDexNumConversion
- push bc
- predef IndexToPokedex
- pop bc
- ld a, [wd11e]
-.skipDexNumConversion
ld e, a
ld d, 0
ld hl, MonsterPalettes ; not just for Pokemon, Trainers use it too