aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/PalletTown.asm
diff options
context:
space:
mode:
authorRangi42 <remy.oukaour+rangi42@gmail.com>2023-11-20 18:53:23 -0500
committerRangi42 <remy.oukaour+rangi42@gmail.com>2023-11-20 18:53:23 -0500
commit77887be2512b4b8af688dc4552bdb4490d35e65b (patch)
tree126dbe7e52876690b9970869c554de83ec093e9c /scripts/PalletTown.asm
parentAdd `bigdw` and `dc` data macros (diff)
downloadpokeyellow-77887be2512b4b8af688dc4552bdb4490d35e65b.tar.gz
pokeyellow-77887be2512b4b8af688dc4552bdb4490d35e65b.tar.xz
pokeyellow-77887be2512b4b8af688dc4552bdb4490d35e65b.zip
Identify `wSavedCoordIndex` and its other usages
Diffstat (limited to 'scripts/PalletTown.asm')
-rw-r--r--scripts/PalletTown.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/PalletTown.asm b/scripts/PalletTown.asm
index dd898ac6..4d5bebf0 100644
--- a/scripts/PalletTown.asm
+++ b/scripts/PalletTown.asm
@@ -45,7 +45,7 @@ PalletTownDefaultScript:
PalletTownOakHeyWaitScript:
xor a
- ld [wcf0d], a
+ ld [wOakWalkedToPlayer], a
ld a, TEXT_PALLETTOWN_OAK
ldh [hSpriteIndexOrTextID], a
call DisplayTextID
@@ -96,8 +96,8 @@ PalletTownOakNotSafeComeWithMeScript:
ret nz
xor a ; ld a, SPRITE_FACING_DOWN
ld [wSpritePlayerStateData1FacingDirection], a
- ld a, 1
- ld [wcf0d], a
+ ld a, TRUE
+ ld [wOakWalkedToPlayer], a
ld a, SELECT | START | D_RIGHT | D_LEFT | D_UP | D_DOWN
ld [wJoyIgnore], a
ld a, TEXT_PALLETTOWN_OAK
@@ -161,7 +161,7 @@ PalletTown_TextPointers:
PalletTownOakText:
text_asm
- ld a, [wcf0d]
+ ld a, [wOakWalkedToPlayer]
and a
jr nz, .next
ld a, 1