From: Rudolf Polzer Date: Mon, 16 Sep 2013 15:37:23 +0000 (+0200) Subject: Update item location when moved. X-Git-Tag: xonotic-v0.8.0~327 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f314057c5368749c358ea3122af0ef6cd56942ad;p=xonotic%2Fxonotic-data.pk3dir.git Update item location when moved. --- diff --git a/qcsrc/server/csqcprojectile.qc b/qcsrc/server/csqcprojectile.qc index 3554f1ff6..ac58a90c3 100644 --- a/qcsrc/server/csqcprojectile.qc +++ b/qcsrc/server/csqcprojectile.qc @@ -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) diff --git a/qcsrc/server/t_items.qc b/qcsrc/server/t_items.qc index 31aa5caf7..fcc8c0cf3 100644 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@ -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) {