From: Mircea Kitsune Date: Mon, 21 May 2012 19:41:18 +0000 (+0300) Subject: Subtract self.mins from the origin of the control point as well. Not sure if this... X-Git-Tag: xonotic-v0.8.0~295^2~50 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5e425b80dc69a5df8bb25e7bea19735a8632ed73;p=xonotic%2Fxonotic-data.pk3dir.git Subtract self.mins from the origin of the control point as well. Not sure if this is needed here too, but it looks more correct to me, and I assume it should be done like for the other origins. Movement is ready and working, now to get the train to rotate in the proper direction --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 8882d2099..3e506ad2b 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -296,7 +296,7 @@ void train_next() cp_org = targ.origin - self.mins; // assume a straight line to the destination as fallback } else - cp_org = cp.origin; + cp_org = cp.origin - self.mins; } if (!self.target) objerror("train_next: no next target");