]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/t_plats.qc
Don't use target2 for the curve point, use another field called curve. This is to...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / t_plats.qc
index d6b39768b8aa0ccc1f55754763b57d088f922290..1fa075e15ea56d6fcd54dd72b50779bfd1348ed4 100644 (file)
@@ -298,7 +298,7 @@ void train_next()
        if (self.spawnflags & 1)
        {
                cp = find(world, target, targ.targetname); // get the previous corner first
-               cp = find(world, targetname, cp.target2); // now get its second target (the control point)
+               cp = find(world, targetname, cp.curve); // now get its second target (the control point)
                if(cp.targetname == "")
                        cp_org = targ.origin - self.mins; // no control point found, assume a straight line to the destination
                else