Minor weapons list bug fixed
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
+2
-2
@@ -366,7 +366,7 @@ AfterPurchase
|
|||||||
cmp IndexesOfWeaponsL1,y
|
cmp IndexesOfWeaponsL1,y
|
||||||
beq ?weaponfound
|
beq ?weaponfound
|
||||||
iny
|
iny
|
||||||
cpy #(last_offensive_____ - first_offensive____) ; maxOffensiveWeapons
|
cpy #(last_offensive_____ - first_offensive____)+1 ; maxOffensiveWeapons
|
||||||
bne @-
|
bne @-
|
||||||
; not found apparently?
|
; not found apparently?
|
||||||
; TODO: check border case (the last weapon)
|
; TODO: check border case (the last weapon)
|
||||||
@@ -957,7 +957,7 @@ DefActivationEnd
|
|||||||
cmp IndexesOfWeaponsL2,y
|
cmp IndexesOfWeaponsL2,y
|
||||||
beq ?weaponfound
|
beq ?weaponfound
|
||||||
iny
|
iny
|
||||||
cpy #(last_defensive_____ - first_defensive____) ; maxDefensiveWeapon
|
cpy #(last_defensive_____ - first_defensive____)+1 ; maxDefensiveWeapon
|
||||||
bne @-
|
bne @-
|
||||||
; not found apparently?
|
; not found apparently?
|
||||||
; TODO: check border case (the last weapon)
|
; TODO: check border case (the last weapon)
|
||||||
|
|||||||
Reference in New Issue
Block a user