]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
path_corner: run triggers for target2 to target4 when starting a move towards the...
authorRudolf Polzer <divverent@alientrap.org>
Mon, 14 Feb 2011 18:57:10 +0000 (19:57 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 14 Feb 2011 18:57:10 +0000 (19:57 +0100)
qcsrc/server/t_plats.qc

index f3afdf580c26b0ff2890ff28107c6c77ab1db964..97897d9cd717a2d2d5a1c7345544fae50f1d8080 100644 (file)
@@ -279,6 +279,12 @@ void train_next()
 
        if(self.noise != "")
                sound(self, CHAN_TRIGGER, self.noise, VOL_BASE, ATTN_IDLE);
+
+       entity oldself;
+       oldself = self;
+       self = targ;
+       SUB_UseTargets();
+       self = oldself;
 };
 
 void func_train_find()