projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2290af5
)
map: map arrow animation now does not run obj check anymore if the animation is alrea...
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 6 Oct 2025 03:28:59 +0000
(
05:28
+0200)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 6 Oct 2025 03:28:59 +0000
(
05:28
+0200)
src/map.s
patch
|
blob
|
history
diff --git
a/src/map.s
b/src/map.s
index f1a609b6bf162bae9f434283c06acdb159f0955e..bfd91e0f3fab4d9959c48a5a759a7a99d7e6d564 100644
(file)
--- a/
src/map.s
+++ b/
src/map.s
@@
-255,6
+255,11
@@
map_r_nop:
; checks if all enemies are defeated
; and re-enables scroll
map_r_enable_scroll_all_enemies_defeated:
+ ; don't run check loop if the anmation is already going
+ ld a, [map_anim_timer]
+ cp a, 0
+ jr nz, @no_check_loop REL
+
; check if all enemies are NULL actors
ld hl, actors_enemy
ld de, act_size
@@
-269,6
+274,8
@@
map_r_enable_scroll_all_enemies_defeated:
dec b
jr nz, @check_loop REL
+@no_check_loop:
+
ld a, [map_anim_timer]
cp a, 0
jp z, @no_animation