From dc705d25c57d18c1ef40d35a786d09192303e85e Mon Sep 17 00:00:00 2001 From: Alchav <59858495+Alchav@users.noreply.github.com> Date: Sat, 18 Nov 2023 23:48:40 -0500 Subject: Correct wTilePlayerStandingOn "unused?" comment (#433) `TilePairCollisionsWater` contains the entry `db CAVERN, $14, $05`, which prevents surfing from raised cave ground tiles. If `wTilePlayerStandingOn` is not updated when the start menu is opened, it will be left at the previous tile, which will be the raised ground tile if you have just walked onto the stairs from one. --- home/overworld.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/overworld.asm b/home/overworld.asm index defa1728..8085f484 100644 --- a/home/overworld.asm +++ b/home/overworld.asm @@ -104,7 +104,7 @@ OverworldLoopLessDelay:: bit 0, a jr nz, .checkForOpponent lda_coord 8, 9 - ld [wTilePlayerStandingOn], a ; unused? + ld [wTilePlayerStandingOn], a ; checked when using Surf for forbidden tile pairs call DisplayTextID ; display either the start menu or the NPC/sign text ld a, [wEnteringCableClub] and a -- cgit v1.3.1-sl0p