mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-20 03:45:33 +13:00
Merge pull request #80 from dannye/master
Remove hard-coded wPokedexOwned/wPokedexSeen array size
This commit is contained in:
commit
d8d0893d94
|
|
@ -194,7 +194,7 @@ HandlePokedexListMenu: ; 40111 (10:4111)
|
||||||
call PlaceString
|
call PlaceString
|
||||||
; find the highest pokedex number among the pokemon the player has seen
|
; find the highest pokedex number among the pokemon the player has seen
|
||||||
ld hl,wPokedexSeenEnd - 1
|
ld hl,wPokedexSeenEnd - 1
|
||||||
ld b,153
|
ld b,(wPokedexSeenEnd - wPokedexSeen) * 8 + 1
|
||||||
.maxSeenPokemonLoop
|
.maxSeenPokemonLoop
|
||||||
ld a,[hld]
|
ld a,[hld]
|
||||||
ld c,8
|
ld c,8
|
||||||
|
|
|
||||||
|
|
@ -944,7 +944,7 @@ OaksLabText5: ; 1d248 (7:5248)
|
||||||
bit 6, a
|
bit 6, a
|
||||||
jr nz, .asm_50e81 ; 0x1d24e
|
jr nz, .asm_50e81 ; 0x1d24e
|
||||||
ld hl, wPokedexOwned
|
ld hl, wPokedexOwned
|
||||||
ld b, $13
|
ld b, wPokedexOwnedEnd - wPokedexOwned
|
||||||
call CountSetBits
|
call CountSetBits
|
||||||
ld a, [wd11e]
|
ld a, [wd11e]
|
||||||
cp $2
|
cp $2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue