mirror of
https://github.com/pkali/scorch_src.git
synced 2026-05-20 22:34:21 +02:00
inventory price clearing fix
This commit is contained in:
+9
-10
@@ -505,15 +505,6 @@ DeffensiveSelected
|
|||||||
; we have enough cash and the weapon can be
|
; we have enough cash and the weapon can be
|
||||||
; added to the list
|
; added to the list
|
||||||
|
|
||||||
|
|
||||||
; clear list line
|
|
||||||
lda #0
|
|
||||||
tay ; ldy #0
|
|
||||||
@ sta (XBYTE),y
|
|
||||||
iny
|
|
||||||
cpy #32 ; end of price
|
|
||||||
bne @-
|
|
||||||
|
|
||||||
; first special chars
|
; first special chars
|
||||||
; (it's easier this way)
|
; (it's easier this way)
|
||||||
|
|
||||||
@@ -551,7 +542,7 @@ itIsInventory
|
|||||||
mwa #InventoryTitle DLPurTitleAddr
|
mwa #InventoryTitle DLPurTitleAddr
|
||||||
|
|
||||||
; ldx @weapon_index
|
; ldx @weapon_index
|
||||||
; WHAT THE HECK IS Y HERE???? I DO NOT UNDERSTAND!!!!
|
; Y contains TankNr
|
||||||
lda TanksWeaponsTableL,y
|
lda TanksWeaponsTableL,y
|
||||||
sta weaponPointer
|
sta weaponPointer
|
||||||
lda TanksWeaponsTableH,y
|
lda TanksWeaponsTableH,y
|
||||||
@@ -560,6 +551,14 @@ itIsInventory
|
|||||||
lda (weaponPointer),y
|
lda (weaponPointer),y
|
||||||
jeq noWeapon
|
jeq noWeapon
|
||||||
|
|
||||||
|
; clear price area
|
||||||
|
ldy #21 ; beginning of the price area
|
||||||
|
lda #0
|
||||||
|
@ sta (XBYTE),y
|
||||||
|
iny
|
||||||
|
cpy #32 ; end of price
|
||||||
|
bne @-
|
||||||
|
|
||||||
notInventory
|
notInventory
|
||||||
|
|
||||||
; number of posessed shells
|
; number of posessed shells
|
||||||
|
|||||||
BIN
Binary file not shown.
Reference in New Issue
Block a user