]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Properly flip up / down orientation. Inverting z origin was a horrid thing to do
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 19:27:24 +0000 (22:27 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 19:27:24 +0000 (22:27 +0300)
qcsrc/server/t_plats.qc

index 440e16c5c5193a617ce317f2779d60222d4cba83..fb3cb22c6d3287ba24b465ccdfdd4917a1470cb0 100644 (file)
@@ -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
                {