From 7a652fef6f5374352d7b98a23bc52d23a21f57e1 Mon Sep 17 00:00:00 2001
From: Mircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Date: Tue, 22 May 2012 17:51:10 +0300
Subject: [PATCH] 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)

---
 qcsrc/server/t_plats.qc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.39.5