]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add self.mins there too, still no fix
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:36:07 +0000 (18:36 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:36:07 +0000 (18:36 +0300)
qcsrc/server/t_plats.qc

index c84b2283688535eeb7f3f977e56f10cc07e52b21..f335af7095d071b4d21c581c225dcb1e03f74617 100644 (file)
@@ -310,9 +310,9 @@ void train_wait()
                        cp = world;
 
                if(cp) // bezier curves movement
-                       org = normalize(cp.origin - self.origin); // use the origin of the control point of the next path_corner
+                       org = normalize(cp.origin - (self.origin - self.mins)); // use the origin of the control point of the next path_corner
                else // linear movement
-                       org = normalize(targ.origin - self.origin); // use the origin of the next path_corner
+                       org = normalize(targ.origin - (self.origin - self.mins)); // use the origin of the next path_corner
 
                if(self.wait >= 0) // slow turning
                {