ReplaceKrisSprite -> UpdatePlayerSprite

This commit is contained in:
Rangi
2020-06-16 19:38:00 -04:00
parent f76dabedcc
commit f2550fc3c2
11 changed files with 22 additions and 22 deletions

View File

@@ -142,7 +142,7 @@ SkipUpdateMapSprites:
set PLAYERSPRITESETUP_SKIP_RELOAD_GFX_F, [hl]
ret
CheckReplaceKrisSprite:
CheckUpdatePlayerSprite:
nop
call .CheckBiking
jr c, .ok
@@ -153,7 +153,7 @@ CheckReplaceKrisSprite:
ret
.ok
call ReplaceKrisSprite
call UpdatePlayerSprite
ret
.CheckBiking:

View File

@@ -6,7 +6,7 @@ GetEmote2bpp:
ldh [rVBK], a
ret
_ReplaceKrisSprite::
_UpdatePlayerSprite::
call GetPlayerSprite
ld a, [wUsedSprites]
ldh [hUsedSpriteIndex], a

View File

@@ -784,7 +784,7 @@ ENDM
push bc
ld a, PLAYER_NORMAL
ld [wPlayerState], a
call ReplaceKrisSprite ; UpdateSprites
call UpdatePlayerSprite ; UpdateSprites
pop bc
ret

View File

@@ -316,7 +316,7 @@ RefreshMapSprites:
farcall InitMapNameSign
call GetMovementPermissions
farcall RefreshPlayerSprite
farcall CheckReplaceKrisSprite
farcall CheckUpdatePlayerSprite
ld hl, wPlayerSpriteSetupFlags
bit PLAYERSPRITESETUP_SKIP_RELOAD_GFX_F, [hl]
jr nz, .skip