From 96c1b6fb705b441c148404c756b4049405d03190 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Fri, 23 May 2025 05:57:45 +0200 Subject: [PATCH] unit: fixed end turn being delayed if inputs are held --- src/unit.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unit.s b/src/unit.s index 2c9219a..1ade05d 100644 --- a/src/unit.s +++ b/src/unit.s @@ -390,6 +390,10 @@ unit_sleep: ; inputs: ; de: current unit unit_next_request: + ld a, [gameplay_flags] + and a, GPF_UNIT_NEXT + ret nz ; do not call again if flag is set + ld a, [gameplay_flags] or a, GPF_UNIT_NEXT ld [gameplay_flags], a -- 2.30.2