]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/items/items.qc
items: misc cleanup
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / items / items.qc
index 834406c41871b6b6bf313ea6b640f1ebe8aa98f6..c1bcfe6e5468b7754feacd420aadf0bf7f1a05d9 100644 (file)
@@ -238,10 +238,12 @@ NET_HANDLE(ENT_CLIENT_ITEM, bool isnew)
                this.angles = this.angles_held = ReadAngleVector();
        }
 
+       /* bones_was_here TODO: network proper box size for sv_legacy_bbox_expand 0
        if(sf & ISF_SIZE)
        {
                setsize(this, '-16 -16 0', '16 16 48');
        }
+       */
 
        if(sf & ISF_STATUS) // need to read/write status first so model can handle simple, fb etc.
        {
@@ -283,9 +285,12 @@ NET_HANDLE(ENT_CLIENT_ITEM, bool isnew)
 
        if(sf & ISF_MODEL)
        {
-               if (isnew) IL_PUSH(g_drawables, this);
-               this.draw = ItemDraw;
-               //this.flags |= FL_ITEM;
+               if(isnew)
+               {
+                       IL_PUSH(g_drawables, this);
+                       this.draw = ItemDraw;
+                       this.flags |= FL_ITEM;
+               }
 
                this.fade_end = ReadShort();
 
@@ -307,7 +312,6 @@ NET_HANDLE(ENT_CLIENT_ITEM, bool isnew)
        {
                this.gravity = 1;
                this.pushable = true;
-               //this.angles = '0 0 0';
                set_movetype(this, MOVETYPE_TOSS);
                this.velocity = ReadVector();
        }