]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Subtract self.mins from the origin of the control point as well. Not sure if this...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 21 May 2012 19:41:18 +0000 (22:41 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 21 May 2012 19:41:18 +0000 (22:41 +0300)
qcsrc/server/t_plats.qc

index 8882d20998b888f87ccb9ee87417d39f4e0c27ba..3e506ad2b1246597573bac36dfea434f30018071 100644 (file)
@@ -296,7 +296,7 @@ void train_next()
                        cp_org = targ.origin - self.mins; // assume a straight line to the destination as fallback
                }
                else
-                       cp_org = cp.origin;
+                       cp_org = cp.origin - self.mins;
        }
        if (!self.target)
                objerror("train_next: no next target");