Improvements in "AutoDefense" - now works great!

This commit is contained in:
Pecusx
2022-11-09 14:14:20 +01:00
parent 3f74494bed
commit c419eac3de
8 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -617,14 +617,15 @@ DoNotFinishTheRound
ldx NumberOfPlayers
dex
CheckNextTankAD
lda Energy,x
lda Energy,x ; only active players
beq @+
lda AutoDefenseFlag,x
lda AutoDefenseFlag,x ; with Auto Defence activated
beq @+
; run auto defense for tank in X
jsr AutoDefense
@ dex
bpl CheckNextTankAD
jsr DrawTanks ; redraw tanks witch new defences
;
ldx TankSequencePointer
lda TankSequence,x