mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 15:45:24 +13:00
Identify SPRITESTATEDATA2_ORIGFACINGDIRECTION
This commit is contained in:
parent
4a7d1513f3
commit
51ac538c25
5 changed files with 11 additions and 10 deletions
|
|
@ -111,13 +111,13 @@ CloseTextDisplay::
|
|||
xor a
|
||||
ldh [hAutoBGTransferEnabled], a ; disable continuous WRAM to VRAM transfer each V-blank
|
||||
; loop to make sprites face the directions they originally faced before the dialogue
|
||||
ld hl, wSprite01StateData2 + 9 ; should be wSprite01StateData1FacingDirection?
|
||||
ld hl, wSprite01StateData2OrigFacingDirection
|
||||
ld c, $0f
|
||||
ld de, $10
|
||||
.restoreSpriteFacingDirectionLoop
|
||||
ld a, [hl]
|
||||
ld a, [hl] ; x#SPRITESTATEDATA2_ORIGFACINGDIRECTION
|
||||
dec h
|
||||
ld [hl], a
|
||||
ld [hl], a ; [x#SPRITESTATEDATA1_FACINGDIRECTION]
|
||||
inc h
|
||||
add hl, de
|
||||
dec c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue