From: Lukas Krickl Date: Sun, 8 Dec 2024 17:33:50 +0000 (+0100) Subject: Fixed bug that caused actors to incorrectly end their turn under certain X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=5ad2832cb061b1cdae939afd74ae5798f8eb93bb;p=gbrg%2F.git Fixed bug that caused actors to incorrectly end their turn under certain conditions. This was caused by actor_update_bat setting the zero flag which caused call nz, update_actor_null to be executed --- diff --git a/BUGS.md b/BUGS.md index 8dcf942..97fed4b 100644 --- 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 diff --git a/src/actor.s b/src/actor.s index 977fd48..b8d9a59 100644 --- a/src/actor.s +++ b/src/actor.s @@ -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