From: Lukas Krickl Date: Fri, 23 May 2025 03:57:45 +0000 (+0200) Subject: unit: fixed end turn being delayed if inputs are held X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=96c1b6fb705b441c148404c756b4049405d03190;p=gbrg%2F.git unit: fixed end turn being delayed if inputs are held --- 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