]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Link some positional entities (fixes prediction of jumppads in some odd old maps)
authorMario <mario@smbclan.net>
Mon, 21 Mar 2016 07:43:57 +0000 (17:43 +1000)
committerMario <mario@smbclan.net>
Mon, 21 Mar 2016 07:43:57 +0000 (17:43 +1000)
qcsrc/common/triggers/misc/teleport_dest.qc
qcsrc/common/triggers/target/location.qc

index f6919006d47c40b8e25893d582743c7705999969..33401930d8d929c836ee4f16273ae5aa6d90d669 100644 (file)
@@ -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)
index 14512c794cfc960d92555e9e327c4c25f6c71d40..642c72cdbb13645fddb3da24e05e6aeffb47a139 100644 (file)
@@ -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