]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't use target2 for the curve point, use another field called curve. This is to...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 13:13:08 +0000 (16:13 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 22 May 2012 13:13:08 +0000 (16:13 +0300)
qcsrc/server/defs.qh
qcsrc/server/t_plats.qc

index fe1b00b9a643ea68c510bef32f1c9bff13a49be0..de814316c638370579189f2f61c0e03c42c9b8e1 100644 (file)
@@ -528,6 +528,7 @@ void target_voicescript_clear(entity pl);
 .string target2;
 .string target3;
 .string target4;
+.string curve;
 .float target_random;
 .float trigger_reverse;
 
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