]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If a weapon doesn't have a team, show it even if it's taken, so players know where...
authorMario <mario@smbclan.net>
Tue, 13 Dec 2016 14:50:12 +0000 (00:50 +1000)
committerMario <mario@smbclan.net>
Tue, 13 Dec 2016 14:50:12 +0000 (00:50 +1000)
qcsrc/server/weapons/selection.qc

index 5df7accc0b93afc2c3066fd56b0c963fc6435063..cdb337d145bb948a877141cd610f4a0b74a58acc 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 && (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;