From: Lukas Krickl Date: Tue, 17 Jun 2025 02:40:02 +0000 (+0200) Subject: ui: fixed moves max still being read from memory in ui update X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=abb2083058b58c67d4ba3f60f6608c4971b8f3d7;p=gbrg%2F.git ui: fixed moves max still being read from memory in ui update --- diff --git a/src/ui.s b/src/ui.s index e475349..efda7bb 100644 --- a/src/ui.s +++ b/src/ui.s @@ -54,9 +54,11 @@ ui_draw: ; hl = actor ld de, act_moves add hl, de ; hl = current moves - ld a, [hl+] ; a = counter + ld a, [hl] ; a = counter ld d, a ; d = counter - ld a, [hl] ; a = moves max counter + + call stat_calc_moves_max + ; a = moves max counter sub a, d ; max - current ld e, a ; e = moves max counter