From 7d9e6d204536517fe1f7adad92b189845a953f58 Mon Sep 17 00:00:00 2001 From: Pecusx Date: Mon, 21 Nov 2022 09:40:13 +0100 Subject: [PATCH] Minor weapons list bug fixed --- scorch.bin | Bin 32768 -> 32768 bytes scorch.xex | Bin 49243 -> 49243 bytes textproc.asm | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scorch.bin b/scorch.bin index 65071152911be895d05c498c32e7369bbe288181..a20c88a8c18cbe28eb82987370123f7c17d5b705 100644 GIT binary patch delta 23 ecmZo@U}|V!+7KqksIWO)PL_pHU~{QbcPs!@>IT*T delta 23 ecmZo@U}|V!+7KqkD8D&ePL_p{e{-o)cPs!@*9O!8 diff --git a/scorch.xex b/scorch.xex index f5fdeb6c63086274346fe4007abe08b61e396204..e883f356179d08c1fd254ac460438670c3548ad1 100644 GIT binary patch delta 23 fcmccJz{shx5fYfais|h diff --git a/textproc.asm b/textproc.asm index f98a127..1f23598 100644 --- a/textproc.asm +++ b/textproc.asm @@ -366,7 +366,7 @@ AfterPurchase cmp IndexesOfWeaponsL1,y beq ?weaponfound iny - cpy #(last_offensive_____ - first_offensive____) ; maxOffensiveWeapons + cpy #(last_offensive_____ - first_offensive____)+1 ; maxOffensiveWeapons bne @- ; not found apparently? ; TODO: check border case (the last weapon) @@ -957,7 +957,7 @@ DefActivationEnd cmp IndexesOfWeaponsL2,y beq ?weaponfound iny - cpy #(last_defensive_____ - first_defensive____) ; maxDefensiveWeapon + cpy #(last_defensive_____ - first_defensive____)+1 ; maxDefensiveWeapon bne @- ; not found apparently? ; TODO: check border case (the last weapon)