Energy updates on status bar after AI uses battery

This commit is contained in:
Pecusx
2023-06-18 14:53:13 +02:00
parent b916d9113a
commit e201bf6fe0
6 changed files with 4 additions and 2 deletions
+1
View File
@@ -1900,6 +1900,7 @@ ActiveDefence
sta statusBuffer+80+39 sta statusBuffer+80+39
NoDefenceName NoDefenceName
DisplayEnergy
;========================= ;=========================
;displaying the energy of a tank ;displaying the energy of a tank
;========================= ;=========================
+1
View File
@@ -335,6 +335,7 @@ displayloop1
;------------------------------------------------- ;-------------------------------------------------
.proc DisplayStatus .proc DisplayStatus
;------------------------------------------------- ;-------------------------------------------------
DisplayEnergy
DisplayAngle DisplayAngle
ldx TankNr ldx TankNr
rts rts
+2 -2
View File
@@ -247,9 +247,9 @@ LowBatteries
lda #ind_White_Flag lda #ind_White_Flag
sta ActiveDefenceWeapon,x sta ActiveDefenceWeapon,x
jsr PutTankNr ; and draw tank witch Flag jsr PutTankNr ; and draw tank witch Flag
clc
EnoughEnergy EnoughEnergy
rts ; Carry = 0 - White Flag , Carry = 1 - We don't give up :) jsr DisplayStatus.DisplayEnergy
rts
.endp .endp
; ;
.proc UseBattery .proc UseBattery
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.