diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-04-08 18:50:10 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-04-08 19:42:55 -0400 |
commit | 2184b60a0cb5e3d1c2b64f7787f3fc0da5efbcab (patch) | |
tree | 473c39b05f00c29e399be8a02b028a11521df813 /engine/overworld/player_movement.asm | |
parent | ec8869584ff7a02ab1ca12fe8b5e6652034f2f17 (diff) |
Identify and eliminate wEngineBuffer1-5
Diffstat (limited to 'engine/overworld/player_movement.asm')
-rw-r--r-- | engine/overworld/player_movement.asm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engine/overworld/player_movement.asm b/engine/overworld/player_movement.asm index e8f45d913..09d6b47de 100644 --- a/engine/overworld/player_movement.asm +++ b/engine/overworld/player_movement.asm @@ -4,7 +4,7 @@ DoPlayerMovement:: ld a, movement_step_sleep ld [wMovementAnimation], a xor a - ld [wd041], a + ld [wWalkingIntoEdgeWarp], a call .TranslateIntoMovement ld c, a ld a, [wMovementAnimation] @@ -98,7 +98,7 @@ DoPlayerMovement:: jr z, .Standing ; Walking into an edge warp won't bump. - ld a, [wEngineBuffer4] + ld a, [wWalkingIntoEdgeWarp] and a jr nz, .CantMove call .BumpSound @@ -321,17 +321,17 @@ DoPlayerMovement:: .TrySurf: call .CheckSurfPerms - ld [wd040], a + ld [wWalkingIntoLand], a jr c, .surf_bump call .CheckNPC - ld [wd03f], a + ld [wWalkingIntoNPC], a and a jr z, .surf_bump cp 2 jr z, .surf_bump - ld a, [wd040] + ld a, [wWalkingIntoLand] and a jr nz, .ExitWater @@ -395,7 +395,7 @@ DoPlayerMovement:: .CheckWarp: ; Bug: Since no case is made for STANDING here, it will check ; [.edgewarps + $ff]. This resolves to $3e at $8035a. -; This causes wd041 to be nonzero when standing on tile $3e, +; This causes wWalkingIntoEdgeWarp to be nonzero when standing on tile $3e, ; making bumps silent. ld a, [wWalkingDirection] @@ -409,8 +409,8 @@ DoPlayerMovement:: cp [hl] jr nz, .not_warp - ld a, 1 - ld [wd041], a + ld a, TRUE + ld [wWalkingIntoEdgeWarp], a ld a, [wWalkingDirection] ; This is in the wrong place. cp STANDING |