From: Mircea Kitsune Date: Tue, 22 May 2012 14:51:10 +0000 (+0300) Subject: Get rotation closer to the correct position, but for some reason it still doesn't... X-Git-Tag: xonotic-v0.8.0~295^2~37 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7a652fef6f5374352d7b98a23bc52d23a21f57e1;p=xonotic%2Fxonotic-data.pk3dir.git Get rotation closer to the correct position, but for some reason it still doesn't work (it aims toward the next point but goes slightly under / over the final position sometimes) --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index de1243ecb..805f690ec 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -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;