From 48a1ae254129527251bed0fbf2a01bef46f5ae52 Mon Sep 17 00:00:00 2001 From: Astatin Date: Thu, 28 Aug 2025 16:46:14 +0200 Subject: Fix entities blinking not reset when frozen --- entity/bunny.gbasm | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'entity/bunny.gbasm') diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm index 8870dcc..72d6631 100644 --- a/entity/bunny.gbasm +++ b/entity/bunny.gbasm @@ -9,6 +9,18 @@ Move_Bunny: LD A, $00 LD $mem_bunny_status_tile, A + .Reset_Blinking_flag: + LD A, $mem_map_loading_flags + BIT 3, A + JR Z, =.Reset_Blinking_flag.end + LD A, $mem_moving_animation_step + CP $00 + JR NZ, =.Reset_Blinking_flag.end + LD A, $mem_bunny_flags + RES 3, A + LD $mem_bunny_flags, A + .Reset_Blinking_flag.end: + .Finish_unfreeze: LD A, $mem_moving_animation_step CP $00 @@ -216,18 +228,6 @@ Move_Bunny: LD $mem_map_loading_flags, A .Start_action_or_movement.end: - .Reset_Blinking_flag: - LD A, $mem_map_loading_flags - BIT 3, A - JR Z, =.Reset_Blinking_flag.end - LD A, $mem_moving_animation_step - CP $00 - JR NZ, =.Reset_Blinking_flag.end - LD A, $mem_bunny_flags - RES 3, A - LD $mem_bunny_flags, A - .Reset_Blinking_flag.end: - .Delayed_Attack: LD A, $mem_moving_animation_step CP $08 -- cgit v1.2.3-70-g09d2