unit: fixed current actor comparison in unit->unit collision
authorLukas Krickl <lukas@krickl.dev>
Sat, 21 Jun 2025 14:13:25 +0000 (16:13 +0200)
committerLukas Krickl <lukas@krickl.dev>
Sat, 21 Jun 2025 14:13:25 +0000 (16:13 +0200)
This check was just completely busted...

src/unit.s

index 583f7bd50999199023822d3ecbbc813357d9dc42..6b6676227aed81f5ccab78d12b618bf70432ddb1 100644 (file)
@@ -265,10 +265,10 @@ unit_collides_with_any_other:
     
     ; check if actor is current actor
     ld a, h
-    cp a, d
+    cp a, e
     jr nz, @no_skip REL
     ld a, l
-    cp a, l
+    cp a, d
     jr z, @skip REL
 @no_skip: