And a very rare bug in calculating distance of the bullet from the tank.
This commit is contained in:
Pecusx
2023-08-26 13:02:50 +02:00
parent 99be22ac3b
commit 8651e33619
5 changed files with 16 additions and 23 deletions
+3 -4
View File
@@ -657,9 +657,8 @@ NotShooter
clc
adc EnergyDecrease
sta loseL,x
lda loseH,x
adc #$00
sta loseH,x
scc
inc loseH,x
; Energy now, not less than 0
lda Energy,x
cmp EnergyDecrease
@@ -678,7 +677,7 @@ NotNegativeEnergy
adc EnergyDecrease
sta gainL,y
lda gainH,y
adc #$00
adc #0
sta gainH,y
rts
.endp