mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Fix comment on HP bar bug
This commit is contained in:
parent
08e6009e61
commit
5b9ba5d921
@ -189,12 +189,13 @@ LongAnim_UpdateVariables: ; d6f5
|
|||||||
; This routine is buggy. The result from ComputeHPBarPixels is stored
|
; This routine is buggy. The result from ComputeHPBarPixels is stored
|
||||||
; in e. However, the pop de opcode deletes this result before it is even
|
; in e. However, the pop de opcode deletes this result before it is even
|
||||||
; used. The game then proceeds as though it never deleted that output.
|
; used. The game then proceeds as though it never deleted that output.
|
||||||
; To fix, move the line "ld a, e" to here.
|
; To fix, uncomment the line below.
|
||||||
call ComputeHPBarPixels
|
call ComputeHPBarPixels
|
||||||
|
; ld a, e
|
||||||
pop bc
|
pop bc
|
||||||
pop de
|
pop de
|
||||||
pop hl
|
pop hl
|
||||||
ld a, e
|
ld a, e ; Comment or delete this line to fix the above bug.
|
||||||
ld hl, wCurHPBarPixels
|
ld hl, wCurHPBarPixels
|
||||||
cp [hl]
|
cp [hl]
|
||||||
jr z, .loop
|
jr z, .loop
|
||||||
|
Loading…
Reference in New Issue
Block a user