From: Mircea Kitsune Date: Mon, 21 May 2012 19:23:31 +0000 (+0300) Subject: Fix fallback origin X-Git-Tag: xonotic-v0.8.0~295^2~53 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c21f334c563a2c3d0433d7c3c3130e96150ae543;p=xonotic%2Fxonotic-data.pk3dir.git Fix fallback origin --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 796d9eeab..c253d41d7 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -290,7 +290,8 @@ void train_next() // when using bezier curves, you must have a control point for each corner in the train's path if(autocvar_developer) dprint(strcat("Warning: func_train using beizer curves heading to the path_corner '", targ.targetname, "' which does not have a control point. Please add a target2 for each path_corner used by this train!\n")); - cp = targ; // assume a straight line to the destination as fallback + cp = spawn(); + setorigin(cp, targ.origin - self.mins); // assume a straight line to the destination as fallback } } if (!self.target)