From c28809f9cb1d1d457470d9d867c5408249cf4ab9 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 24 May 2012 22:27:24 +0300 Subject: [PATCH] Properly flip up / down orientation. Inverting z origin was a horrid thing to do --- qcsrc/server/t_plats.qc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 440e16c5c..fb3cb22c6 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -310,11 +310,10 @@ void train_wait() cp = world; if(cp) // bezier curves movement - org = cp.origin - (self.origin + self.mins); // use the origin of the control point of the next path_corner + org = vectoangles(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 + self.mins); // use the origin of the next path_corner - org_z = -org_z; - org = vectoangles(org); + org = vectoangles(targ.origin - (self.origin + self.mins)); // use the origin of the next path_corner + org_x = -org_x; // flip up / down orientation if(self.wait >= 0) // slow turning { -- 2.39.2