]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Try another origin, which I think is more correct but does the same thing...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 15:10:03 +0000 (18:10 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 15:10:03 +0000 (18:10 +0300)
qcsrc/server/t_plats.qc

index 805f690eccb807c5bd0dcbf6781d2cbca9a0e6ab..3e8d077af707a82bb48155e0fbfdd1d866e6aaf6 100644 (file)
@@ -269,7 +269,7 @@ void train_wait()
                entity targ;
                vector org;
                targ = find(world, targetname, self.target);
-               org = normalize(targ.origin - (self.origin - self.mins));
+               org = normalize(targ.origin);
                SUB_CalcAngleMove(org, TSPEED_TIME, self.ltime - time + self.wait, train_wait);
                self.train_wait_turning = TRUE;
                return;