From: Lukas Krickl Date: Mon, 6 Oct 2025 03:28:59 +0000 (+0200) Subject: map: map arrow animation now does not run obj check anymore if the animation is alrea... X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=2845fd3a32e503cf575df4d8967d3ac86e5481b6;p=gbrg%2F.git map: map arrow animation now does not run obj check anymore if the animation is already running --- diff --git a/src/map.s b/src/map.s index f1a609b..bfd91e0 100644 --- 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