projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
550e0ab
)
action: Added ability to abort attack command
author
Lukas Krickl
<lukas@krickl.dev>
Sat, 16 Aug 2025 16:02:49 +0000
(18:02 +0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Sat, 16 Aug 2025 16:02:49 +0000
(18:02 +0200)
src/action.s
patch
|
blob
|
history
diff --git
a/src/action.s
b/src/action.s
index 196d5d316aa981c71d322128df8774e2df953418..eeb6ded9fcbc7059b0fbe542c9bdc1127155bcde 100644
(file)
--- a/
src/action.s
+++ b/
src/action.s
@@
-55,6
+55,11
@@
unit_action_attack_pick_direction_init:
; returns:
; bc: next action
unit_action_attack_pick_direction:
+ ; b to abort
+ ld b, BTNB
+ input_just
+ jp nz, unit_switch_to_active
+
ldnull bc
ret