]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix inverted Z angle. I hope it's done the right way
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 19:15:49 +0000 (22:15 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 19:15:49 +0000 (22:15 +0300)
qcsrc/server/t_plats.qc

index 9c0d057b03a31a33ff5b04db8334d72535dc446c..eaccc53ae82e6f3da878386fee744bfd8f99f206 100644 (file)
@@ -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
                {