From: Lukas Krickl Date: Tue, 20 May 2025 16:10:37 +0000 (+0200) Subject: unit: unit swapping now seems to work correctly X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=e700c6731013750521d2f4a5382a1f4d3083838b;p=gbrg%2F.git unit: unit swapping now seems to work correctly Unit moves were not being reset correctly --- diff --git a/src/unit.s b/src/unit.s index 73f9a85..3d6cdb2 100644 --- a/src/unit.s +++ b/src/unit.s @@ -530,9 +530,8 @@ unit_reset_all_moves: pop hl ld de, act_size add hl, de ; move to next act - dec b - jr z, @loop REL + jr nz, @loop REL ret