mirror of
https://github.com/Pecusx/scorch_src.git
synced 2026-05-20 22:33:43 +02:00
Additional check for 0 bullets in DecreaseWeapon proc #56
This commit is contained in:
@@ -2372,12 +2372,14 @@ RangesChecked
|
||||
; decreases 1 bullet from a weapon(A) of tank(TankNr)
|
||||
;--------------------------------------------------
|
||||
jsr HowManyBullets
|
||||
beq noBullets ; no bullets - no decreasing (additional check)
|
||||
cpy #0
|
||||
beq defaultWeapon ; no decreasing Baby Missile
|
||||
sec
|
||||
sbc #1
|
||||
sta (weaponPointer),y ; we have good values after HowManyBullets
|
||||
defaultWeapon
|
||||
noBullets
|
||||
rts
|
||||
.endp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user