From 80e179d06752cce4e3274cafc3b05b9473db6de3 Mon Sep 17 00:00:00 2001 From: BjossiAlfreds Date: Sun, 29 Sep 2019 11:45:44 +0000 Subject: [PATCH] Currently held weapon no longer part of the search --- src/g_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/g_cmds.c b/src/g_cmds.c index 641d814..7652b9f 100644 --- a/src/g_cmds.c +++ b/src/g_cmds.c @@ -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) {