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
+1 -1
View File
@@ -24,7 +24,7 @@
; (direct writes to screen memory - atari only :) )
;---------------------------------------------------
; OPT r+ ; saves 12 bytes, but does not work (yet): https://github.com/tebe6502/Mad-Assembler/issues/10
OPT r+ ; saves 10 bytes, and probably work :) : https://github.com/tebe6502/Mad-Assembler/issues/10
;---------------------------------------------------
.macro build
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.