From 0673395cc4dfe151c4231337e2684c094d53c9a2 Mon Sep 17 00:00:00 2001 From: Pecusx Date: Thu, 28 Sep 2023 21:15:16 +0200 Subject: [PATCH] If a white flag, robotanks targeting makes no sense. But - no memory! --- ai.asm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ai.asm b/ai.asm index 5a22671..3955779 100644 --- a/ai.asm +++ b/ai.asm @@ -536,7 +536,7 @@ skipThisPlayer ; in temp2 we have x distance divided by 8 ldy temp2+1 lda tempor2 - rts +End rts .endp ;---------------------------------------------- @@ -546,6 +546,9 @@ skipThisPlayer ; returns angle and power of shoot tank X (TankNr) ; in the appropriate variables (Angle and Force) ;---------------------------------------------- +; lda ActiveDefenceWeapon,x ; sorry memory !!! +; cmp #ind_White_Flag ; if a white flag, targeting makes no sense +; beq FindBestTarget2.End ; nearest RTS mva #$ff SecondTryFlag NoSecondTry lda ActiveWeapon,x