AI fix and optimization

This commit is contained in:
2022-07-03 13:22:44 -04:00
parent 2a5595f3c9
commit 3fb83583c3
4 changed files with 36 additions and 59 deletions
+4 -4
View File
@@ -609,13 +609,13 @@ DrawNextTank
ldx tankNr
; let's check the energy
lda eXistenZ,x
bne SkipRemovigPM ; if energy=0 then no tank
bne SkipHidingPM ; if energy=0 then no tank
; hide P/M
lda #0
sta hposp0,x
jmp DoNotDrawTankNr
SkipRemovigPM
SkipHidingPM
lda AngleTable,x
@@ -731,11 +731,11 @@ tankflash_loop
sne:mva #1 fs ; finish it
mva #1 Erase
ldx TankNr
jsr DrawTankNr.SkipRemovigPM ; it's necessary becouse DrawTankNr skips tanks with no energy !
jsr DrawTankNr.SkipHidingPM ; it's necessary becouse DrawTankNr skips tanks with no energy !
PAUSE 2
mva #0 Erase
ldx TankNr
jsr DrawTankNr.SkipRemovigPM
jsr DrawTankNr.SkipHidingPM
PAUSE 2
dec fs
jne tankflash_loop