]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Update item location when moved.
authorRudolf Polzer <divverent@xonotic.org>
Mon, 16 Sep 2013 15:37:23 +0000 (17:37 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Mon, 16 Sep 2013 15:37:23 +0000 (17:37 +0200)
qcsrc/server/csqcprojectile.qc
qcsrc/server/t_items.qc

index 3554f1ff67235142f837507183b772c41c841c09..ac58a90c3e36715d3c020156d3a5dab3c9d69f47 100644 (file)
@@ -85,6 +85,10 @@ void CSQCProjectile(entity e, float clientanimate, float type, float docull)
        e.csqcprojectile_type = type;
 }
 
+// FIXME HACK
+float ItemSend(entity to, float sf);
+void ItemUpdate(entity item);
+// END HACK
 void UpdateCSQCProjectile(entity e)
 {
        if(e.SendEntity == CSQCProjectile_SendEntity)
@@ -92,6 +96,12 @@ void UpdateCSQCProjectile(entity e)
                // send new origin data
                e.SendFlags |= 0x01;
        }
+// FIXME HACK
+       else if(e.SendEntity == ItemSend)
+       {
+               ItemUpdate(e);
+       }
+// END HACK
 }
 
 void UpdateCSQCProjectileAfterTeleport(entity e)
index 31aa5caf791b29bbe8fb69e489aa935e167bb4d9..fcc8c0cf30d5d6b9c955b47618909592deaa7a45 100644 (file)
@@ -268,6 +268,10 @@ float ItemSend(entity to, float sf)
     return TRUE;
 }
 
+void ItemUpdate(entity item)
+{
+       item.SendFlags |= ISF_LOCATION;
+}
 
 float have_pickup_item(void)
 {