projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3a2402
)
ui: fixed moves max still being read from memory in ui update
author
Lukas Krickl
<lukas@krickl.dev>
Tue, 17 Jun 2025 02:40:02 +0000
(
04:40
+0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Tue, 17 Jun 2025 02:40:02 +0000
(
04:40
+0200)
src/ui.s
patch
|
blob
|
history
diff --git
a/src/ui.s
b/src/ui.s
index e47534959ead9ca218d05445771af5e3cffa6c77..efda7bb0399fc29f01272bdb7da9bdbff0903b14 100644
(file)
--- 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