From 5e425b80dc69a5df8bb25e7bea19735a8632ed73 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Mon, 21 May 2012 22:41:18 +0300 Subject: [PATCH] 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 --- qcsrc/server/t_plats.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.39.2