From c36f95a079d271e2ff392ec21cbf254c29b81b56 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Thu, 21 Aug 2025 20:27:24 +0200 Subject: [PATCH] unit_cpu: Made the default AI follow the player a little bit less --- src/unit_cpu.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/unit_cpu.s b/src/unit_cpu.s index 961ecb0..2325cad 100644 --- a/src/unit_cpu.s +++ b/src/unit_cpu.s @@ -24,7 +24,7 @@ unit_handle_cpu_inputs: ; there's a change the ; unit will just move randomly anyway call rand - and a, 0x7F + and a, 0x2 cp a, 0 jp z, @random_move @@ -45,7 +45,7 @@ unit_handle_cpu_inputs: ; are we in scan range? cp a, UNIT_SCAN_RANGE_Y jr nc, @not_in_y_range REL - cp a, 1 + cp a, 0 jr z, @not_in_y_range REL ; which direction? @@ -74,7 +74,7 @@ unit_handle_cpu_inputs: ; are we in scan range? cp a, UNIT_SCAN_RANGE_X jr nc, @not_in_x_range REL - cp a, 1 + cp a, 0 jr z, @not_in_x_range REL ; which direction? -- 2.30.2