unit: unit swapping now seems to work correctly
authorLukas Krickl <lukas@krickl.dev>
Tue, 20 May 2025 16:10:37 +0000 (18:10 +0200)
committerLukas Krickl <lukas@krickl.dev>
Tue, 20 May 2025 16:10:37 +0000 (18:10 +0200)
Unit moves were not being reset correctly

src/unit.s

index 73f9a85061bb1baa505b4a8a43eac81f23d46ee0..3d6cdb295192ecce7d3c2bce6dcd68f8e362c675 100644 (file)
@@ -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