From: Mario Date: Sun, 4 Dec 2016 04:48:06 +0000 (+1000) Subject: Only show weapon spawns if they're available X-Git-Tag: xonotic-v0.8.2~393 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a7ec55332433725b212db9df0e41d0cfe2b168d2;p=xonotic%2Fxonotic-data.pk3dir.git Only show weapon spawns if they're available --- diff --git a/qcsrc/server/weapons/selection.qc b/qcsrc/server/weapons/selection.qc index 539371a53..5df7accc0 100644 --- a/qcsrc/server/weapons/selection.qc +++ b/qcsrc/server/weapons/selection.qc @@ -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;