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 539371a53cbe9c94b87e388deac95b290d1850cd..5df7accc0b93afc2c3066fd56b0c963fc6435063 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;