From: Mario Date: Mon, 21 Mar 2016 07:43:57 +0000 (+1000) Subject: Link some positional entities (fixes prediction of jumppads in some odd old maps) X-Git-Tag: xonotic-v0.8.2~1064 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cde4300a5ed7b64790f25993a805aee88bc4d5f0;p=xonotic%2Fxonotic-data.pk3dir.git Link some positional entities (fixes prediction of jumppads in some odd old maps) --- diff --git a/qcsrc/common/triggers/misc/teleport_dest.qc b/qcsrc/common/triggers/misc/teleport_dest.qc index f6919006d..33401930d 100644 --- a/qcsrc/common/triggers/misc/teleport_dest.qc +++ b/qcsrc/common/triggers/misc/teleport_dest.qc @@ -26,8 +26,8 @@ bool teleport_dest_send(entity this, entity to, int sf) void teleport_dest_link() {SELFPARAM(); - //Net_LinkEntity(self, false, 0, teleport_dest_send); - //self.SendFlags |= 1; // update + Net_LinkEntity(self, false, 0, teleport_dest_send); + self.SendFlags |= 1; // update } spawnfunc(info_teleport_destination) diff --git a/qcsrc/common/triggers/target/location.qc b/qcsrc/common/triggers/target/location.qc index 14512c794..642c72cdb 100644 --- a/qcsrc/common/triggers/target/location.qc +++ b/qcsrc/common/triggers/target/location.qc @@ -1,14 +1,20 @@ #ifdef SVQC +void target_push_init(entity this); + spawnfunc(target_location) { self.classname = "target_location"; // location name in netname // eventually support: count, teamgame selectors, line of sight? + + target_push_init(this); } spawnfunc(info_location) { - self.classname = "target_location"; - self.message = self.netname; + this.classname = "target_location"; + this.message = this.netname; + + target_push_init(this); } #endif