From: Mircea Kitsune Date: Tue, 22 May 2012 14:32:01 +0000 (+0300) Subject: Use an origin code which is closer to the correct rotation. The train will aim toward... X-Git-Tag: xonotic-v0.8.0~295^2~38 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c4e5adb4a6ca7e6af370ec3b8a955eba0920868f;p=xonotic%2Fxonotic-data.pk3dir.git Use an origin code which is closer to the correct rotation. The train will aim toward the next point while standing now, but it still doesn't seem to reach full rotation before carrying on --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 6ac02df66..de1243ecb 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -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; }