diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-07 16:57:51 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-07-07 16:57:51 -0400 |
| commit | 51ac538c25f8c0a6d88101569a17f02d09855d31 (patch) | |
| tree | 511154a1efc0ece4114d690eb30f3f8d7a882504 /engine | |
| parent | Use 'tile' and 'tiles' macros (diff) | |
| download | pokeyellow-51ac538c25f8c0a6d88101569a17f02d09855d31.tar.gz pokeyellow-51ac538c25f8c0a6d88101569a17f02d09855d31.tar.xz pokeyellow-51ac538c25f8c0a6d88101569a17f02d09855d31.zip | |
Identify SPRITESTATEDATA2_ORIGFACINGDIRECTION
Diffstat (limited to 'engine')
| -rw-r--r-- | engine/menus/display_text_id_init.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/menus/display_text_id_init.asm b/engine/menus/display_text_id_init.asm index c147eaf6..6ce76e7f 100644 --- a/engine/menus/display_text_id_init.asm +++ b/engine/menus/display_text_id_init.asm @@ -38,17 +38,17 @@ DisplayTextIDInit:: jr nz, .skipMovingSprites call UpdateSprites .skipMovingSprites -; loop to copy [x#SPRITESTATEDATA1_FACINGDIRECTION] to [x#SPRITESTATEDATA2_09] -; for each sprite from x=01 to x=15 +; loop to copy [x#SPRITESTATEDATA1_FACINGDIRECTION] to +; [x#SPRITESTATEDATA2_ORIGFACINGDIRECTION] for each non-player sprite ; this is done because when you talk to an NPC, they turn to look your way ; the original direction they were facing must be restored after the dialogue is over ld hl, wSprite01StateData1FacingDirection ld c, $0f ld de, $10 .spriteFacingDirectionCopyLoop - ld a, [hl] + ld a, [hl] ; x#SPRITESTATEDATA1_FACINGDIRECTION inc h - ld [hl], a + ld [hl], a ; [x#SPRITESTATEDATA2_ORIGFACINGDIRECTION] dec h add hl, de dec c |
