From 74caa7f360912a87d634724dedff6ff8765a618f Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sun, 8 Dec 2024 08:32:13 +0100 Subject: [PATCH] Improved who_next performance --- src/actor.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/actor.s b/src/actor.s index 22e5eca..edb48bd 100644 --- a/src/actor.s +++ b/src/actor.s @@ -340,8 +340,8 @@ anim_clear: ; effectively ending the current actor's turn who_next: ld a, [end_turn] - cp a, 0 - jr z, @skip REL + and a, a ; check for 0 + ret z xor a, a ld [end_turn], a @@ -356,5 +356,4 @@ who_next: ld a, WHO_PLAYER @no_player: ld [who], a -@skip: ret -- 2.30.2