aboutsummaryrefslogtreecommitdiffstats
path: root/engine/overworld/player_animations.asm
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2025-11-25 17:53:29 -0500
committerGitHub <noreply@github.com>2025-11-25 16:53:29 -0600
commite92d1af478c8381fde30f709c2619abe90104d3a (patch)
tree7be135926706fabcf23d2b278378d0fdd7f7eda7 /engine/overworld/player_animations.asm
parentUse `ld_hli_a_string` macro to make byte-by-byte strings more obvious (#540) (diff)
downloadpokeyellow-e92d1af478c8381fde30f709c2619abe90104d3a.tar.gz
pokeyellow-e92d1af478c8381fde30f709c2619abe90104d3a.tar.xz
pokeyellow-e92d1af478c8381fde30f709c2619abe90104d3a.zip
Avoid magic numbers for most `CopyData` calls (#542)
Diffstat (limited to 'engine/overworld/player_animations.asm')
-rw-r--r--engine/overworld/player_animations.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/overworld/player_animations.asm b/engine/overworld/player_animations.asm
index 4ed1f49f..657c001e 100644
--- a/engine/overworld/player_animations.asm
+++ b/engine/overworld/player_animations.asm
@@ -264,7 +264,7 @@ InitFacingDirectionList:
ld [wSavedPlayerScreenY], a
ld hl, PlayerSpinningFacingOrder
ld de, wFacingDirectionList
- ld bc, 4
+ ld bc, OBJ_SIZE
call CopyData
ld a, [wSpritePlayerStateData1ImageIndex] ; (image index is locked to standing images)
ld hl, wFacingDirectionList
@@ -288,7 +288,7 @@ SpinPlayerSprite:
push hl
ld hl, wFacingDirectionList
ld de, wFacingDirectionList - 1
- ld bc, 4
+ ld bc, OBJ_SIZE
call CopyData
ld a, [wFacingDirectionList - 1]
ld [wFacingDirectionList + 3], a
@@ -393,7 +393,7 @@ FishingAnim:
ld hl, FishingRodOAM
add hl, bc
ld de, wShadowOAMSprite39
- ld bc, $4
+ ld bc, OBJ_SIZE
call CopyData
ld c, 100
call DelayFrames