X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fitems%2Fitems.qc;h=a87214072efa20179b5cf24b5750370ecba826e8;hb=996bb618198837cab36c7da79b0d543a0ae4e120;hp=5cf659cffff84f7cf834b34c597d1439b7d98c5b;hpb=c58baab5bd2dc4a77eb7d8e97824621d887c8e75;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/items/items.qc b/qcsrc/server/items/items.qc index 5cf659cff..a87214072 100644 --- a/qcsrc/server/items/items.qc +++ b/qcsrc/server/items/items.qc @@ -55,8 +55,8 @@ bool ItemSend(entity this, entity to, int sf) if(sf & ISF_MODEL) { - WriteShort(MSG_ENTITY, this.fade_end); - WriteShort(MSG_ENTITY, this.fade_start); + 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"); @@ -950,6 +950,9 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default this.takedamage = DAMAGE_YES; this.event_damage = Item_Damage; + // enable this to have thrown items burn in lava + //this.damagedbycontents = true; + //IL_PUSH(g_damagedbycontents, this); if (Item_IsExpiring(this)) {