X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;ds=inline;f=qcsrc%2Fserver%2Fweapons%2Fselection.qc;h=693d5a240456323adab1c259b51dfb2551275386;hb=3ea07b383ddf9f50df0f01c8d88b0d4c75b48e5f;hp=776d8d8d0f43800999a3b10829cb3c9c20cc2d93;hpb=e57fd111a3279a4aa4789e2c72f9c819a56c7be9;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/selection.qc b/qcsrc/server/weapons/selection.qc index 776d8d8d0..693d5a240 100644 --- a/qcsrc/server/weapons/selection.qc +++ b/qcsrc/server/weapons/selection.qc @@ -2,6 +2,7 @@ #include "weaponsystem.qh" #include +#include #include #include #include @@ -25,8 +26,10 @@ void Weapon_whereis(Weapon this, entity cl) if (!autocvar_g_showweaponspawns) return; IL_EACH(g_items, it.weapon == this.m_id && (!it.team || (it.ItemStatus & ITS_AVAILABLE)), { - if (it.classname == "droppedweapon" && autocvar_g_showweaponspawns < 2) + if (Item_IsLoot(it) && (autocvar_g_showweaponspawns < 2)) + { continue; + } entity wp = WaypointSprite_Spawn( WP_Weapon, -2, 0,