]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Get rotation closer to the correct position, but for some reason it still doesn't...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 14:51:10 +0000 (17:51 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 14:51:10 +0000 (17:51 +0300)
qcsrc/server/t_plats.qc

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