diff options
| author | Rangi42 <remy.oukaour+rangi42@gmail.com> | 2023-11-21 20:36:00 -0500 |
|---|---|---|
| committer | Rangi42 <remy.oukaour+rangi42@gmail.com> | 2023-11-21 20:36:00 -0500 |
| commit | 41ec74e1f0481ec995a5ad9e9dd73e7ad91c181f (patch) | |
| tree | 830ab14a4130f2e1ab852e0beb71bf6cf53aaa43 /engine | |
| parent | Get rid of wEvosMoves, MAX_EVOLUTIONS, and EVOLUTION_SIZE (diff) | |
| download | pokeyellow-41ec74e1f0481ec995a5ad9e9dd73e7ad91c181f.tar.gz pokeyellow-41ec74e1f0481ec995a5ad9e9dd73e7ad91c181f.tar.xz pokeyellow-41ec74e1f0481ec995a5ad9e9dd73e7ad91c181f.zip | |
Fix inaccurate comment in UpdateNPCSprite
Fixes #404
Diffstat (limited to 'engine')
| -rw-r--r-- | engine/overworld/movement.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/overworld/movement.asm b/engine/overworld/movement.asm index eb186f1e..fd26f9cb 100644 --- a/engine/overworld/movement.asm +++ b/engine/overworld/movement.asm @@ -129,7 +129,7 @@ UpdateNPCSprite: and a jp z, InitializeSpriteStatus call CheckSpriteAvailability - ret c ; if sprite is invisible, on tile >=MAP_TILESET_SIZE, in grass or player is currently walking + ret c ; don't do anything if sprite is invisible ld h, HIGH(wSpriteStateData1) ldh a, [hCurrentSpriteOffset] ld l, a @@ -148,7 +148,7 @@ UpdateNPCSprite: jp z, UpdateSpriteInWalkingAnimation ; [x#SPRITESTATEDATA1_MOVEMENTSTATUS] == 3 ld a, [wWalkCounter] and a - ret nz ; don't do anything yet if player is currently moving (redundant, already tested in CheckSpriteAvailability) + ret nz ; don't do anything yet if player is currently moving call InitializeSpriteScreenPosition ld h, HIGH(wSpriteStateData2) ldh a, [hCurrentSpriteOffset] |
