]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use an origin code which is closer to the correct rotation. The train will aim toward...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 14:32:01 +0000 (17:32 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 14:32:01 +0000 (17:32 +0300)
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;
        }