diff options
author | surskitty <surskitty@gmail.com> | 2017-12-13 19:55:03 -0500 |
---|---|---|
committer | surskitty <surskitty@gmail.com> | 2017-12-13 19:55:03 -0500 |
commit | 4b36a9d2e1d6b6ac823fbb14e8f0ba750b0eecc2 (patch) | |
tree | fcbbd0247503a200c4c1d8df690a676b49a09efd /engine/anim_hp_bar.asm | |
parent | e3ee39f3344107f666099448401d28b04c983cd6 (diff) | |
parent | a6656a986bf9dde51561cab090648e0117b173ad (diff) |
Merge branch 'master' of github.com:pret/pokecrystal
Diffstat (limited to 'engine/anim_hp_bar.asm')
-rwxr-xr-x | engine/anim_hp_bar.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/anim_hp_bar.asm b/engine/anim_hp_bar.asm index 6272ff7ea..a26c40b91 100755 --- a/engine/anim_hp_bar.asm +++ b/engine/anim_hp_bar.asm @@ -382,7 +382,10 @@ ShortHPBar_CalcPixelFrame: ; d839 and a jr z, .return_zero call AddNTimes + ld b, 0 +; This routine is buggy. If [wCurHPAnimMaxHP] * [wCurHPBarPixels] is divisible +; by 48, the loop runs one extra time. To fix, uncomment the line below. .loop ld a, l sub 6 * 8 @@ -390,6 +393,7 @@ ShortHPBar_CalcPixelFrame: ; d839 ld a, h sbc $0 ld h, a + ; jr z, .done jr c, .done inc b jr .loop |