From: Lukas Krickl Date: Sun, 8 Dec 2024 07:32:13 +0000 (+0100) Subject: Improved who_next performance X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=74caa7f360912a87d634724dedff6ff8765a618f;p=gbrg%2F.git Improved who_next performance --- 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