From: Mario Date: Tue, 13 Dec 2016 14:50:12 +0000 (+1000) Subject: If a weapon doesn't have a team, show it even if it's taken, so players know where... X-Git-Tag: xonotic-v0.8.2~384 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d26b1b4fb719c7c758af2292b20805a8eb935886;p=xonotic%2Fxonotic-data.pk3dir.git If a weapon doesn't have a team, show it even if it's taken, so players know where its spawn point is --- diff --git a/qcsrc/server/weapons/selection.qc b/qcsrc/server/weapons/selection.qc index 5df7accc0..cdb337d14 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 && (it.ItemStatus & ITS_AVAILABLE), + IL_EACH(g_items, it.weapon == this.m_id && (!it.team || (it.ItemStatus & ITS_AVAILABLE)), { if (it.classname == "droppedweapon" && autocvar_g_showweaponspawns < 2) continue;