]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Attempt to fix some item linking issues
authorMario <mario.mario@y7mail.com>
Sun, 8 Dec 2013 05:43:09 +0000 (16:43 +1100)
committerMario <mario.mario@y7mail.com>
Sun, 8 Dec 2013 05:43:09 +0000 (16:43 +1100)
qcsrc/server/t_items.qc

index 86d19beec4411c59bc8e6c7d061e779ab1ddf168..f9bb3ff10b64d173d028a32345c7c63a682e7b40 100644 (file)
@@ -1015,9 +1015,6 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime,
                        return;
                }
 
-               if(self.angles != '0 0 0')
-            self.SendFlags |= ISF_ANGLES;
-
                self.reset = Item_Reset;
                // it's a level item
                if(self.spawnflags & 1)
@@ -1036,9 +1033,7 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime,
                                setsize (self, '-16 -16 0', '16 16 48');
                        else
                                setsize (self, '-16 -16 0', '16 16 32');
-                               
-                       self.SendFlags |= ISF_SIZE;
-                       
+
                        // note droptofloor returns FALSE if stuck/or would fall too far
                        droptofloor();
                        waypoint_spawnforitem(self);
@@ -1112,8 +1107,6 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime,
     }
     setsize (self, self.pos1, self.pos2);
 
-    self.SendFlags |= ISF_SIZE;
-
     if(itemflags & FL_POWERUP)
         self.ItemStatus |= ITS_ANIMATE1;
 
@@ -1144,6 +1137,10 @@ void StartItem (string itemmodel, string pickupsound, float defaultrespawntime,
                Item_Reset();
 
     Net_LinkEntity(self, FALSE, 0, ItemSend);
+       
+       self.SendFlags |= ISF_SIZE;
+       if(self.angles)
+               self.SendFlags |= ISF_ANGLES;
 
        // call this hook after everything else has been done
        if(MUTATOR_CALLHOOK(Item_Spawn))