]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_plats.qc
Subtract self.mins from the origin of the control point as well. Not sure if this...
[xonotic/xonotic-data.pk3dir.git] / 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");