From d07e5f9d0859978801935744457775bd90bc71ec Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Tue, 17 Jun 2025 05:30:21 +0200 Subject: [PATCH] unit: Added a new _fast version of delay to active This state is intended for CPU units because they do not need an input delay to make gameplay feel better. --- src/unit.s | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/unit.s b/src/unit.s index 9eb857c..1339831 100644 --- a/src/unit.s +++ b/src/unit.s @@ -117,7 +117,7 @@ unit_handle_cpu_inputs: cp a, 3 call z, unit_try_move_down - ld bc, st_unit_delay_to_active + ld bc, st_unit_delay_to_active_fast ret @@ -838,5 +838,8 @@ st_unit_idle: st_unit_delay_to_active: st_def 8, unit_delay_to_active, st_unit_switch_to_active +st_unit_delay_to_active_fast: + st_def 0, unit_delay_to_active, st_unit_switch_to_active + st_unit_switch_to_active: st_def 0, unit_switch_to_active, st_unit_switch_to_active -- 2.30.2