Dot does not fire MIRV :)

This commit is contained in:
Pecusx
2022-12-16 13:41:52 +01:00
parent 328a147225
commit 87f7e7eafa
3 changed files with 10 additions and 5 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+10 -5
View File
@@ -1751,10 +1751,13 @@ Loopi
bpl StillUp bpl StillUp
; where we know that the bullet starts to fall down ; where we know that the bullet starts to fall down
; we check if it is MIRV and if so, jump to MIRV routine ; we check if it is MIRV and if so, jump to MIRV routine
bit TestFlightFlag
bmi NoTestForMIRV
ldx TankNr ldx TankNr
lda ActiveWeapon,x lda ActiveWeapon,x
cmp #ind_MIRV___________ ; MIRV cmp #ind_MIRV___________ ; MIRV
jeq MIRVdownLoop jeq MIRVdownLoop
NoTestForMIRV
NoGravity NoGravity
StillUp StillUp
@@ -2102,11 +2105,13 @@ MIRVcopyParameters
ldx #$FF ; it will turn 0 in a moment anyway ldx #$FF ; it will turn 0 in a moment anyway
stx MirvMissileCounter stx MirvMissileCounter
mrLoopi mrLoopi
inc:lda MirvMissileCounter ldx MirvMissileCounter
cmp #5 inx
sne:mva #0 MirvMissileCounter cpx #5
bne @+
ldx MirvMissileCounter ldx #0
@ stx MirvMissileCounter
; Y changes only for bullet number 0 ; Y changes only for bullet number 0
; because rest of the bullets have the same Y (height) ; because rest of the bullets have the same Y (height)