]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_plats.qc
Flip orientation the same way on bezier movement, it is better
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_plats.qc
index fb3cb22c6d3287ba24b465ccdfdd4917a1470cb0..f1f863196789fdb79899a6171991bdf8c7b667d5 100644 (file)
@@ -310,9 +310,10 @@ void train_wait()
                        cp = world;
 
                if(cp) // bezier curves movement
-                       org = vectoangles(cp.origin - (self.origin + self.mins)); // 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 = vectoangles(targ.origin - (self.origin + self.mins)); // use the origin of the next path_corner
+                       org = targ.origin - (self.origin + self.mins); // use the origin of the next path_corner
+               org = vectoangles(org);
                org_x = -org_x; // flip up / down orientation
 
                if(self.wait >= 0) // slow turning