infinite money when purchasing Baby Missile fix #26

This commit is contained in:
2022-06-18 07:07:24 -04:00
parent c86dcd7c59
commit 3c685b2811
2 changed files with 1 additions and 2 deletions
BIN
View File
Binary file not shown.
+1 -2
View File
@@ -724,7 +724,6 @@ PurchaseAll
; after getting weapon index the routine is common for all ; after getting weapon index the routine is common for all
ldx tanknr ldx tanknr
tay ; weapon index is in Y tay ; weapon index is in Y
beq @+ ; baby missile skips all
sec sec
lda moneyL,x ; substracting from posessed money lda moneyL,x ; substracting from posessed money
sbc WeaponPriceL,y ; of price of the given weapon sbc WeaponPriceL,y ; of price of the given weapon
@@ -761,7 +760,7 @@ LessThan100
sty LastWeapon ; store last purchased weapon sty LastWeapon ; store last purchased weapon
; because we must put screen pointer next to it ; because we must put screen pointer next to it
@ mva #0 PositionOnTheList ; to move the pointer to the top when no more monies mva #0 PositionOnTheList ; to move the pointer to the top when no more monies
jmp Purchase.AfterPurchase jmp Purchase.AfterPurchase
inventorySelect inventorySelect