mirror of
https://github.com/badvision/lawless-legends.git
synced 2024-10-03 21:55:17 +00:00
Disable weapn change during combat and fix initialization needed when we do
This commit is contained in:
parent
aab1a74698
commit
4506c27bc4
@ -188,13 +188,16 @@ def playerCombatChoose(pl)
|
||||
byte canShoot, canReload, canChange
|
||||
|
||||
// Count all weapons and get currently equipped
|
||||
nWeapons = 0
|
||||
pWeapon = NULL
|
||||
canShoot = FALSE
|
||||
canReload = FALSE
|
||||
canChange = FALSE
|
||||
nWeapons = 0
|
||||
pWeapon = NULL
|
||||
p = pl=>p_items
|
||||
while p
|
||||
if p->t_type == TYPE_WEAPON
|
||||
if p->b_flags & ITEM_FLAG_EQUIP; pWeapon = p; fin
|
||||
nWeapons = nWeapons + 1
|
||||
//nWeapons++ Comment this back in to allow weapon changing
|
||||
fin
|
||||
p = p=>p_nextObj
|
||||
loop
|
||||
|
Loading…
Reference in New Issue
Block a user