Miscellaneous fixes in the use of _command constants.

This commit is contained in:
mid-kid
2018-06-01 09:04:36 +02:00
parent 761edc7db3
commit 17087489c6
4 changed files with 10 additions and 9 deletions

View File

@@ -64,7 +64,7 @@ DoMove: ; 3402c
inc hl inc hl
ld [de], a ld [de], a
inc de inc de
cp -1 cp endmove_command
jr nz, .GetMoveEffect jr nz, .GetMoveEffect
; Start at the first command. ; Start at the first command.

View File

@@ -95,13 +95,13 @@ NameRival: ; 0xc29d
farcall _NamingScreen farcall _NamingScreen
; default to "SILVER" ; default to "SILVER"
ld hl, wRivalName ld hl, wRivalName
ld de, DefaultRivalName ld de, .default
call InitName call InitName
ret ret
; 0xc2b2
DefaultRivalName: ; 0xc2b2 .default
db "SILVER@" db "SILVER@"
; 0xc2b9
NameRater: ; c2b9 NameRater: ; c2b9
farcall _NameRater farcall _NameRater

View File

@@ -399,11 +399,11 @@ PokeAnim_DoAnimScript: ; d0250
.RunAnim: ; d0261 .RunAnim: ; d0261
call PokeAnim_GetPointer call PokeAnim_GetPointer
ld a, [wPokeAnimCommand] ld a, [wPokeAnimCommand]
cp -1 cp endanim_command
jr z, PokeAnim_End jr z, PokeAnim_End
cp -2 cp setrepeat_command
jr z, .SetRepeat jr z, .SetRepeat
cp -3 cp dorepeat_command
jr z, .DoRepeat jr z, .DoRepeat
call PokeAnim_GetFrame call PokeAnim_GetFrame
ld a, [wPokeAnimParameter] ld a, [wPokeAnimParameter]

View File

@@ -2116,13 +2116,13 @@ SpawnEmote: ; 5547
ShakeGrass: ; 5556 ShakeGrass: ; 5556
push bc push bc
ld de, .data_5562 ld de, .GrassObject
call CopyTempObjectData call CopyTempObjectData
call InitTempObject call InitTempObject
pop bc pop bc
ret ret
.data_5562 .GrassObject
db $00, PAL_OW_TREE, SPRITEMOVEDATA_GRASS db $00, PAL_OW_TREE, SPRITEMOVEDATA_GRASS
; 5565 ; 5565
@@ -2140,6 +2140,7 @@ ShakeScreen: ; 5565
.ScreenShakeObject: .ScreenShakeObject:
db $00, PAL_OW_SILVER, SPRITEMOVEDATA_SCREENSHAKE db $00, PAL_OW_SILVER, SPRITEMOVEDATA_SCREENSHAKE
; 5579 ; 5579
DespawnEmote: ; 5579 DespawnEmote: ; 5579
push bc push bc
ld a, [hMapObjectIndexBuffer] ld a, [hMapObjectIndexBuffer]