Fixed bug that caused actors to incorrectly end their turn under certain
authorLukas Krickl <lukas@krickl.dev>
Sun, 8 Dec 2024 17:33:50 +0000 (18:33 +0100)
committerLukas Krickl <lukas@krickl.dev>
Sun, 8 Dec 2024 17:33:50 +0000 (18:33 +0100)
conditions.

This was caused by actor_update_bat setting the zero flag which caused
call nz, update_actor_null to be executed

BUGS.md
src/actor.s

diff --git a/BUGS.md b/BUGS.md
index 8dcf942bfa0ee4a0392459ebed18618ec05e31df..97fed4bb3c2cd7208d7f622b85bf5a07b4f4123b 100644 (file)
--- a/BUGS.md
+++ b/BUGS.md
@@ -1,4 +1,2 @@
 # Known Bugs
 
-- When enemies move off-screen they get stuck
-  It appears that the finish turn code is not called correctly at this point
index 977fd48d3af77e2bed6dfbe21d6536b8f81fba7c..b8d9a59aa63e713a5273d018fdc716a43ed9cc69 100644 (file)
@@ -264,8 +264,7 @@ actors_update:
     ld hl, actor_update_table
     ld a, [bc]
     cp a, 0
-    call nz, call_tbl
-    call z, actor_update_null
+    call call_tbl
 
     pop bc
     pop de