From: Mircea Kitsune Date: Thu, 24 May 2012 19:27:24 +0000 (+0300) Subject: Properly flip up / down orientation. Inverting z origin was a horrid thing to do X-Git-Tag: xonotic-v0.8.0~295^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c28809f9cb1d1d457470d9d867c5408249cf4ab9;p=xonotic%2Fxonotic-data.pk3dir.git Properly flip up / down orientation. Inverting z origin was a horrid thing to do --- 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 {