X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fselection.qc;h=cdb337d145bb948a877141cd610f4a0b74a58acc;hp=b05c0621b534d2dca5c83a840824532881cad9af;hb=d26b1b4fb719c7c758af2292b20805a8eb935886;hpb=0bc82ed18958bfca28a49a2793e3318d78050d15 diff --git a/qcsrc/server/weapons/selection.qc b/qcsrc/server/weapons/selection.qc index b05c0621b..cdb337d14 100644 --- a/qcsrc/server/weapons/selection.qc +++ b/qcsrc/server/weapons/selection.qc @@ -3,9 +3,10 @@ #include "weaponsystem.qh" #include #include +#include #include #include -#include +#include #include #include @@ -21,15 +22,13 @@ void Send_WeaponComplain(entity e, float wpn, float type) void Weapon_whereis(Weapon this, entity cl) { if (!autocvar_g_showweaponspawns) return; - FOREACH_ENTITY_FLOAT(weapon, this.m_id, + IL_EACH(g_items, it.weapon == this.m_id && (!it.team || (it.ItemStatus & ITS_AVAILABLE)), { if (it.classname == "droppedweapon" && autocvar_g_showweaponspawns < 2) continue; - if (!(it.flags & FL_ITEM)) - continue; entity wp = WaypointSprite_Spawn( WP_Weapon, - 1, 0, + -2, 0, NULL, it.origin + ('0 0 1' * it.maxs.z) * 1.2, cl, 0, NULL, enemy,