X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fitems%2Fitems.qc;h=d9ddce2752ac3779ecb20a32ce230f842e0c3768;hb=6484368763b19e29cb26aed6f1aaa9f175cd5550;hp=5214d12ef6ff138f3f9c1acbc65ae83f33015b92;hpb=e854e6badb58cecb0c8f07e312e79f79a9c3a89e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index 5214d12ef..d9ddce275 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -59,7 +59,6 @@ bool ItemSend(entity this, entity to, int sf) if(sf & ISF_MODEL) { WriteShort(MSG_ENTITY, bound(0, this.fade_end, 32767)); - WriteShort(MSG_ENTITY, bound(0, this.fade_start, 32767)); if(this.mdl == "") LOG_TRACE("^1WARNING!^7 this.mdl is unset for item ", this.classname, "expect a crash just about now"); @@ -993,11 +992,9 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default int weaponid = def.instanceOfWeaponPickup ? def.m_weapon.m_id : 0; this.weapon = weaponid; + // bones_was_here TODO: implement sv_cullentities_dist and replace g_items_maxdist with it if(!this.fade_end) - { - this.fade_start = autocvar_g_items_mindist; this.fade_end = autocvar_g_items_maxdist; - } if(weaponid) STAT(WEAPONS, this) = WepSet_FromWeapon(REGISTRY_GET(Weapons, weaponid));