0 weapon bug fixed!

It allowed for multiple firing of weapons despite the lack of missiles
This commit is contained in:
Pecusx
2022-08-16 22:53:29 +02:00
parent 069fd55c28
commit a4b3a403b5
2 changed files with 12 additions and 9 deletions
+12 -9
View File
@@ -613,14 +613,6 @@ continueMainRoundLoopAfterSeppuku
AfterExplode
; TODO: IS IT OK??? possibly a fix here needed for #56
ldy WeaponDepleted
bne @+
ldx TankNr
tya
sta ActiveWeapon,x
@
;temporary tanks removal (would fall down with soil)
mva #1 Erase
jsr drawtanks
@@ -642,9 +634,17 @@ TanksFallDown
NoExistNoFall
dex
bpl TanksFallDown
mva tempor2 TankNr
mvx tempor2 TankNr
missed
; TODO: IS IT OK??? possibly a fix here needed for #56
ldy WeaponDepleted
bne @+
ldx TankNr
tya
sta ActiveWeapon,x
@
;here we clear offensive text (after a shoot)
;shit -- it's second time, but it must be like this
ldy TankNr
@@ -1605,8 +1605,11 @@ noKey
.proc RmtSongSelect
;--------------------------------------------------
; starting song line 0-255 to A reg
cmp #song_ingame
bne noingame ; noMusic blck onlu ingame song
bit noMusic
spl:lda #song_silencio
noingame
mvx #$ff RMT_blocked
ldx #<MODUL ;low byte of RMT module to X reg
ldy #>MODUL ;hi byte of RMT module to Y reg