diff options
author | Rangi <35663410+Rangi42@users.noreply.github.com> | 2020-11-05 23:50:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-05 23:50:02 -0500 |
commit | 5db3bdd6551fad07066b669db1e44a6151aaa0b4 (patch) | |
tree | ab357b894c9457b3d1d38fd49300df34412168f8 /home/text_script.asm | |
parent | ed03fc4f4a3287a01647e528abba27aac1937de0 (diff) | |
parent | 3de7ab601d465581accfe3ff171aeed2808c9647 (diff) |
Merge pull request #60 from Rangi42/master
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] |