Currently held weapon no longer part of the search

This commit is contained in:
BjossiAlfreds 2019-09-29 11:45:44 +00:00
parent b25227fa10
commit 80e179d067

View file

@ -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)
{