mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
10bytes saved. Better AI aiming - thanks @tebe6502 for better MADS
This commit is contained in:
@@ -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
@@ -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
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user