From ed1c9cea3492ea412fe89113d975c237894b4c87 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Thu, 24 May 2012 17:29:01 +0300 Subject: [PATCH 1/1] Make the curve control point a property of the ending path_corner, not the starting one --- qcsrc/server/t_plats.qc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.2