Code optimization for more than 6 tanks.

This commit is contained in:
Pecusx
2023-05-15 21:58:04 +02:00
parent fc3fe9ef19
commit 2577b71e01
6 changed files with 20 additions and 26 deletions
+4 -6
View File
@@ -783,12 +783,10 @@ B0 dey
cpx #ind_White_Flag_____ ; White Flag
bne no99
set99 lda #99
no99 sta TanksWeapon1,x
sta TanksWeapon2,x
sta TanksWeapon3,x
sta TanksWeapon4,x
sta TanksWeapon5,x
sta TanksWeapon6,x
no99
.REPT MaxPlayers, #+1
sta TanksWeapon:1,x
.ENDR
dex
beq set99 ; Baby Missile (index=0)
bpl @-