]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Rename .curve to .curvetarget as suggested by divVerent
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:16:05 +0000 (18:16 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 24 May 2012 15:16:05 +0000 (18:16 +0300)
qcsrc/server/t_plats.qc

index 33fbcd549a1033f907407185497bf7b1de86b97c..5fd9bad79d67f163bd4b6239fc6db75d8a0c4661 100644 (file)
@@ -304,8 +304,8 @@ void train_wait()
                entity targ, cp;
                vector org;
                targ = find(world, targetname, self.target);
-               if(self.spawnflags & 1 && targ.curve)
-                       cp = find(world, targetname, targ.curve);
+               if(self.spawnflags & 1 && targ.curvetarget)
+                       cp = find(world, targetname, targ.curvetarget);
                else
                        cp = world;
 
@@ -350,9 +350,9 @@ void train_next()
        self.target = targ.target;
        if (self.spawnflags & 1)
        {
-               if(targ.curve)
+               if(targ.curvetarget)
                {
-                       cp = find(world, targetname, targ.curve); // get its second target (the control point)
+                       cp = find(world, targetname, targ.curvetarget); // get its second target (the control point)
                        cp_org = cp.origin - self.mins; // no control point found, assume a straight line to the destination
                }
                else