From: TimePath Date: Tue, 26 Jul 2016 23:47:45 +0000 (+1000) Subject: Fix item drawing X-Git-Tag: xonotic-v0.8.2~700^2~18^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3943a3ab553dafa75aa0df04b25535a3e6a33737;p=xonotic%2Fxonotic-data.pk3dir.git Fix item drawing --- diff --git a/qcsrc/common/t_items.qc b/qcsrc/common/t_items.qc index ee9babfb3..8563349fd 100644 --- a/qcsrc/common/t_items.qc +++ b/qcsrc/common/t_items.qc @@ -195,6 +195,7 @@ NET_HANDLE(ENT_CLIENT_ITEM, bool isnew) { this.drawmask = MASK_NORMAL; this.move_movetype = MOVETYPE_TOSS; + if (isnew) IL_PUSH(g_drawables, this); this.draw = ItemDraw; this.solid = SOLID_TRIGGER; //this.flags |= FL_ITEM; @@ -214,7 +215,6 @@ NET_HANDLE(ENT_CLIENT_ITEM, bool isnew) if(autocvar_cl_simple_items && (this.ItemStatus & ITS_ALLOWSI)) { - if (isnew) IL_PUSH(g_drawables, this); string _fn2 = substring(_fn, 0 , strlen(_fn) -4); this.draw = ItemDrawSimple;