aboutsummaryrefslogtreecommitdiffstats
path: root/engine/pikachu
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-02-13 19:48:21 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2021-02-13 19:48:21 -0500
commit205fd1ac81c2d1dcec010c478979bd6159edc72d (patch)
tree00b70faa84c87265b6ee4e68f0df1fc4946afca2 /engine/pikachu
parentProper translation comments in debug_menu.asm (diff)
downloadpokeyellow-205fd1ac81c2d1dcec010c478979bd6159edc72d.tar.gz
pokeyellow-205fd1ac81c2d1dcec010c478979bd6159edc72d.tar.xz
pokeyellow-205fd1ac81c2d1dcec010c478979bd6159edc72d.zip
Identify hUILayoutFlags and hPikachuSpriteVRAMOffset
Diffstat (limited to 'engine/pikachu')
-rw-r--r--engine/pikachu/pikachu_emotions.asm4
-rw-r--r--engine/pikachu/pikachu_movement.asm2
2 files changed, 3 insertions, 3 deletions
diff --git a/engine/pikachu/pikachu_emotions.asm b/engine/pikachu/pikachu_emotions.asm
index f4963f17..6647c4cc 100644
--- a/engine/pikachu/pikachu_emotions.asm
+++ b/engine/pikachu/pikachu_emotions.asm
@@ -414,7 +414,7 @@ INCLUDE "data/pikachu/pikachu_emotions.asm"
PikachuWalksToNurseJoy:
ld a, $40
- ldh [hFFFC], a
+ ldh [hPikachuSpriteVRAMOffset], a
call LoadPikachuSpriteIntoVRAM
call .GetMovementData
and a
@@ -422,7 +422,7 @@ PikachuWalksToNurseJoy:
call ApplyPikachuMovementData
.skip
xor a
- ldh [hFFFC], a
+ ldh [hPikachuSpriteVRAMOffset], a
ret
.GetMovementData:
diff --git a/engine/pikachu/pikachu_movement.asm b/engine/pikachu/pikachu_movement.asm
index 91c16999..6a0877c8 100644
--- a/engine/pikachu/pikachu_movement.asm
+++ b/engine/pikachu/pikachu_movement.asm
@@ -958,7 +958,7 @@ LoadPikachuSpriteIntoVRAM:
call CopyVideoDataAlternate
ld de, PikachuSprite + $c * $10
ld hl, vNPCSprites2 + $c * $10
- ldh a, [hFFFC]
+ ldh a, [hPikachuSpriteVRAMOffset]
and a
jr z, .load
ld de, PikachuSprite + $c * $10