]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/t_items.qc
Introduce touch accessors
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / t_items.qc
index 15cb36c9219088bf507ba41d694eb6d366eb5423..dcbbb95e30802489286574f88270b5413749b0f2 100644 (file)
@@ -1182,7 +1182,7 @@ void _StartItem(entity this, entity def, float defaultrespawntime, float default
        this.bot_pickupbasevalue = pickupbasevalue;
        this.mdl = this.model ? this.model : strzone(this.item_model_ent.model_str());
        this.netname = itemname;
-       this.touch = Item_Touch;
+       settouch(this, Item_Touch);
        setmodel(this, MDL_Null); // precision set below
        //this.effects |= EF_LOWPRECISION;