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: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=d26b1b4fb719c7c758af2292b20805a8eb935886;hp=4b4a2b4146a1b1fe228613952426e79c83abaf31 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 5df7accc0b..cdb337d145 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;