diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-05 10:51:02 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-11-05 10:51:02 -0500 |
commit | 6fe56af2cd63abaf30040cc5031e3db5358cf638 (patch) | |
tree | b024aa8480912ebf2667184068466ee7f354012c /home/text_script.asm | |
parent | ed03fc4f4a3287a01647e528abba27aac1937de0 (diff) |
Organize home and macro code
Diffstat (limited to 'home/text_script.asm')
-rw-r--r-- | home/text_script.asm | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/home/text_script.asm b/home/text_script.asm index 20cfb71d..fe81cb51 100644 --- a/home/text_script.asm +++ b/home/text_script.asm @@ -41,17 +41,12 @@ DisplayTextID:: .spriteHandling ; get the text ID of the sprite push hl - ;push de - ;push bc - ;farcall UpdateSpriteFacingOffsetAndDelayMovement ; update the graphics of the sprite the player is talking to (to face the right direction) - ;pop bc - ;pop de ld hl, wMapSpriteData ; NPC text entries ldh a, [hSpriteIndexOrTextID] dec a add a ld e, a - ld d, $0 + ld d, 0 add hl, de inc hl ld a, [hl] ; a = text ID of the sprite @@ -60,7 +55,7 @@ DisplayTextID:: ; look up the address of the text in the map's text entries dec a ld e, a - ld d, $0 + ld d, 0 add hl, de add hl, de ld a, [hli] |