]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix item drawing
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 26 Jul 2016 23:47:45 +0000 (09:47 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 26 Jul 2016 23:47:45 +0000 (09:47 +1000)
qcsrc/common/t_items.qc

index ee9babfb3009fbe835526e0cf89c5f7ad2980030..8563349fd920f74e725c66bd4cd9609ae8142fa3 100644 (file)
@@ -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;