From: Mircea Kitsune Date: Thu, 24 May 2012 19:15:49 +0000 (+0300) Subject: Fix inverted Z angle. I hope it's done the right way X-Git-Tag: xonotic-v0.8.0~295^2~11 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e97318f19360daec171bb47a2be302d6eb9dabf0;p=xonotic%2Fxonotic-data.pk3dir.git Fix inverted Z angle. I hope it's done the right way --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 9c0d057b0..eaccc53ae 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -310,9 +310,11 @@ void train_wait() cp = world; if(cp) // bezier curves movement - org = vectoangles(cp.origin - self.origin); // use the origin of the control point of the next path_corner + org = cp.origin - self.origin; // use the origin of the control point of the next path_corner else // linear movement - org = vectoangles(targ.origin - self.origin); // use the origin of the next path_corner + org = targ.origin - self.origin; // use the origin of the next path_corner + org_z = -org_z; + org = vectoangles(org); if(self.wait >= 0) // slow turning {