]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Modify rotation origins with self.mins. This commit fixes the last part of the new...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 19:20:37 +0000 (22:20 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 19:20:37 +0000 (22:20 +0300)
qcsrc/server/t_plats.qc

index eaccc53ae82e6f3da878386fee744bfd8f99f206..440e16c5c5193a617ce317f2779d60222d4cba83 100644 (file)
@@ -310,9 +310,9 @@ void train_wait()
                        cp = world;
 
                if(cp) // bezier curves movement
-                       org = cp.origin - self.origin; // 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 = targ.origin - self.origin; // use the origin of the next path_corner
+                       org = targ.origin - (self.origin + self.mins); // use the origin of the next path_corner
                org_z = -org_z;
                org = vectoangles(org);