wrong array range

This commit is contained in:
Pecusx
2022-05-02 13:23:00 +02:00
parent 41747cfadd
commit ca7a61873c
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -619,8 +619,8 @@ PlayerXdeath .proc
MetodOfDeath
lda random
and #%00011111 ; range 0-31 (reduced to 0 - 15 - why??? )
cmp #19 ; we have 19 weapons in table
and #%00011111 ; range 0-31
cmp #20 ; we have 20 weapons in table (from 0 to 19)
bcs MetodOfDeath
tay
lda weaponsOfDeath,y
BIN
View File
Binary file not shown.