chore: fix bugs
Some checks failed
CI / build (push) Failing after 1m18s

This commit is contained in:
Giulia Sanguineti
2025-10-01 10:11:42 +02:00
parent d138ed1bd4
commit 4c8d3e962f
44 changed files with 236 additions and 235 deletions

View File

@@ -179,12 +179,11 @@ LongAnim_UpdateVariables:
ld c, a
ld a, [hli]
ld b, a
; BUG: HP bar animation is slow for high HP (see docs/bugs_and_glitches.md)
call ComputeHPBarPixels
ld a, e
pop bc
pop de
pop hl
ld a, e
ld hl, wCurHPBarPixels
cp [hl]
jr z, .loop
@@ -370,13 +369,13 @@ ShortHPBar_CalcPixelFrame:
ld b, 0
.loop
; BUG: HP bar animation off-by-one error for low HP (see docs/bugs_and_glitches.md)
ld a, l
sub HP_BAR_LENGTH_PX
ld l, a
ld a, h
sbc $0
ld h, a
jr z, .done
jr c, .done
inc b
jr .loop