ListOfWeapons is now 32 and it works

This commit is contained in:
Pecusx
2022-08-29 12:05:51 +02:00
parent cc07bd52f2
commit 4a1c8aacda
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ OptionsScreenEnd
ListOfWeapons
; 0123456789012345678901234567890123456789
; :number_of_offensives dta d" "
:33 dta d" "
:32 dta d" "
ListOfWeapons1End
ListOfDefensiveWeapons
; :number_of_defensives dta d" "
BIN
View File
Binary file not shown.
+4 -3
View File
@@ -702,12 +702,13 @@ WeHaveOffset
adw xbyte #ListOfWeapons
ldy #0
ClearList1
cpw xbyte #ListOfWeapons1End
beq ListCleared1
tya
sta (xbyte),y
inw xbyte
cpw xbyte #ListOfWeapons1End
bne ClearList1
jmp ClearList1
ListCleared1
; And the same we do with the second list
; Multiply number on list 1 by 32 and set address