]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_plats.qc
Use an origin code which is closer to the correct rotation. The train will aim toward...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_plats.qc
index 6ac02df66f04e0433885853cd845909aca1eb757..de1243ecbba0ee11ae8c9658ff5310a9b2c5a115 100644 (file)
@@ -267,8 +267,10 @@ void train_wait()
        if(self.spawnflags & 1 && self.bezier_turn && self.wait >= 0)
        {
                entity targ;
+               vector org;
                targ = find(world, targetname, self.target);
-               SUB_CalcAngleMove(targ.origin, TSPEED_TIME, self.ltime - time + self.wait, train_wait);
+               org = vectoangles(targ.origin);
+               SUB_CalcAngleMove(org, TSPEED_TIME, self.ltime - time + self.wait, train_wait);
                self.train_wait_turning = TRUE;
                return;
        }