10bytes saved. Better AI aiming - thanks @tebe6502 for better MADS

This commit is contained in:
Pecusx
2023-09-28 21:58:16 +02:00
parent 0673395cc4
commit b0b18a20dd
5 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -546,9 +546,10 @@ End rts
; 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
lda ActiveDefenceWeapon,x
cmp #ind_White_Flag ; if a white flag, targeting makes no sense
beq FindBestTarget2.End ; nearest RTS
;
mva #$ff SecondTryFlag
NoSecondTry
lda ActiveWeapon,x