mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-26 06:00:50 +00:00
Currently held weapon no longer part of the search
This commit is contained in:
parent
b25227fa10
commit
80e179d067
1 changed files with 1 additions and 1 deletions
|
@ -1515,7 +1515,7 @@ cycle_weapon(edict_t *ent)
|
|||
{
|
||||
weap = FindItemByClassname(gi.argv(i));
|
||||
|
||||
if (weap && (weap->flags & IT_WEAPON) && weap->use)
|
||||
if (weap && weap != cl->pers.weapon && (weap->flags & IT_WEAPON) && weap->use)
|
||||
{
|
||||
if (cl->pers.inventory[ITEM_INDEX(weap)] > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue