From: Mircea Kitsune Date: Thu, 24 May 2012 15:36:07 +0000 (+0300) Subject: Add self.mins there too, still no fix X-Git-Tag: xonotic-v0.8.0~295^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ae31573d7ea3ed80d32a665c2fbd1751371ea29d;p=xonotic%2Fxonotic-data.pk3dir.git Add self.mins there too, still no fix --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index c84b22836..f335af709 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -310,9 +310,9 @@ void train_wait() cp = world; if(cp) // bezier curves movement - org = normalize(cp.origin - self.origin); // use the origin of the control point of the next path_corner + org = normalize(cp.origin - (self.origin - self.mins)); // use the origin of the control point of the next path_corner else // linear movement - org = normalize(targ.origin - self.origin); // use the origin of the next path_corner + org = normalize(targ.origin - (self.origin - self.mins)); // use the origin of the next path_corner if(self.wait >= 0) // slow turning {