From 3dc59a4b8f4bcbad4d6f0485fb1751c6c65eaa26 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 24 May 2012 22:20:37 +0300 Subject: [PATCH] Modify rotation origins with self.mins. This commit fixes the last part of the new func_train, and gets everything ready and finished :) --- qcsrc/server/t_plats.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index eaccc53ae8..440e16c5c5 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -310,9 +310,9 @@ void train_wait() cp = world; if(cp) // bezier curves movement - org = cp.origin - self.origin; // use the origin of the control point of the next path_corner + org = cp.origin - (self.origin + self.mins); // use the origin of the control point of the next path_corner else // linear movement - org = targ.origin - self.origin; // use the origin of the next path_corner + org = targ.origin - (self.origin + self.mins); // use the origin of the next path_corner org_z = -org_z; org = vectoangles(org); -- 2.39.2