Only show weapon spawns if they're available
authorMario <mario@smbclan.net>
Sun, 4 Dec 2016 04:48:06 +0000 (14:48 +1000)
committerMario <mario@smbclan.net>
Sun, 4 Dec 2016 04:48:06 +0000 (14:48 +1000)
qcsrc/server/weapons/selection.qc

index 539371a..5df7acc 100644 (file)
@@ -22,7 +22,7 @@ void Send_WeaponComplain(entity e, float wpn, float type)
 void Weapon_whereis(Weapon this, entity cl)
 {
        if (!autocvar_g_showweaponspawns) return;
-       IL_EACH(g_items, it.weapon == this.m_id,
+       IL_EACH(g_items, it.weapon == this.m_id && (it.ItemStatus & ITS_AVAILABLE),
        {
                if (it.classname == "droppedweapon" && autocvar_g_showweaponspawns < 2)
                        continue;