From: Mircea Kitsune Date: Thu, 24 May 2012 14:29:01 +0000 (+0300) Subject: Make the curve control point a property of the ending path_corner, not the starting one X-Git-Tag: xonotic-v0.8.0~295^2~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ed1c9cea3492ea412fe89113d975c237894b4c87;p=xonotic%2Fxonotic-data.pk3dir.git Make the curve control point a property of the ending path_corner, not the starting one --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 8e7903be0..ad2f2fa46 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -335,11 +335,9 @@ void train_next() self.target = targ.target; if (self.spawnflags & 1) { - // FIXME don't do this, instead save the cp for next time to an entity field... we don't do find() for target, kthx? - cp = find(world, target, targ.targetname); // get the previous corner first - if(cp && cp.curve) + if(targ.curve) { - cp = find(world, targetname, cp.curve); // now get its second target (the control point) + cp = find(world, targetname, targ.curve); // 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