wPokeAnimStruct matches wPokeAnimStructEnd

This commit is contained in:
Rangi 2018-07-23 00:37:48 -04:00
parent 4f0c9cecf9
commit d5b98f5206
2 changed files with 5 additions and 5 deletions

View File

@ -109,7 +109,7 @@ LoadMonAnimation:
SetUpPokeAnim: SetUpPokeAnim:
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, BANK(wPokeAnimSceneIndex) ld a, BANK(wPokeAnimStruct)
ld [rSVBK], a ld [rSVBK], a
ld a, [wPokeAnimSceneIndex] ld a, [wPokeAnimSceneIndex]
ld c, a ld c, a
@ -284,14 +284,14 @@ AnimateMon_CheckIfPokemon:
PokeAnim_InitPicAttributes: PokeAnim_InitPicAttributes:
ld a, [rSVBK] ld a, [rSVBK]
push af push af
ld a, BANK(wPokeAnimSceneIndex) ld a, BANK(wPokeAnimStruct)
ld [rSVBK], a ld [rSVBK], a
push bc push bc
push de push de
push hl push hl
ld hl, wPokeAnimSceneIndex ld hl, wPokeAnimStruct
ld bc, wPokeAnimStructEnd - wPokeAnimSceneIndex ld bc, wPokeAnimStructEnd - wPokeAnimStruct
xor a xor a
call ByteFill call ByteFill
pop hl pop hl

View File

@ -2893,6 +2893,7 @@ wTempTileMap::
ds SCREEN_WIDTH * SCREEN_HEIGHT ; $168 = 360 ds SCREEN_WIDTH * SCREEN_HEIGHT ; $168 = 360
; PokeAnim data ; PokeAnim data
wPokeAnimStruct::
wPokeAnimSceneIndex:: db wPokeAnimSceneIndex:: db
wPokeAnimPointer:: dw wPokeAnimPointer:: dw
wPokeAnimSpecies:: db wPokeAnimSpecies:: db
@ -2901,7 +2902,6 @@ wPokeAnimSpeciesOrUnown:: db
wPokeAnimGraphicStartTile:: db wPokeAnimGraphicStartTile:: db
wPokeAnimCoord:: dw wPokeAnimCoord:: dw
wPokeAnimFrontpicHeight:: db wPokeAnimFrontpicHeight:: db
; PokeAnim Data
wPokeAnimIdleFlag:: db wPokeAnimIdleFlag:: db
wPokeAnimSpeed:: db wPokeAnimSpeed:: db
wPokeAnimPointerBank:: db wPokeAnimPointerBank:: db