Self-destruction of shielded tank at angle 0. fixed!

This commit is contained in:
Pecusx
2022-11-22 19:38:25 +01:00
parent 05a289ffea
commit d9da258735
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ pmtableH
.by >(pmgraph+$300) .by >(pmgraph+$300)
;----------- ;-----------
sintable sintable
.by 0 .by 1
.by 4 .by 4
.by 8 .by 8
.by 13 .by 13
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+5 -5
View File
@@ -2928,15 +2928,15 @@ CheckCollisionWithTankLoop
cmp ydraw cmp ydraw
bcs OverTheTank bcs OverTheTank
; with or without shield ? ; with or without shield ?
/*
lda ActiveDefenceWeapon,x lda ActiveDefenceWeapon,x
cmp #ind_Mag_Deflector__ ; first shielded weapon cmp #ind_Mag_Deflector__ ; first shielded weapon
bcc CheckCollisionWithNotShieldedTank bcc CheckCollisionWithNotShieldedTank
cmp #ind_Bouncy_Castle__+1 ; last shielded weapon cmp #ind_Bouncy_Castle__+1 ; last shielded weapon
bcs CheckCollisionWithShieldedTank ; tank with shield is bigger :) bcc CheckCollisionWithShieldedTank ; tank with shield is bigger :)
*/
lda ShieldEnergy,x ; there is wrong method to check shield :) ;lda ShieldEnergy,x ; there is wrong method to check shield :)
bne CheckCollisionWithShieldedTank ; tank with shield is bigger :) ;bne CheckCollisionWithShieldedTank ; tank with shield is bigger :)
CheckCollisionWithNotShieldedTank CheckCollisionWithNotShieldedTank
lda xtankstableH,x lda xtankstableH,x