From 3d28f108af7733517b35fa6bdf9a182404d82482 Mon Sep 17 00:00:00 2001 From: Mircea Kitsune Date: Mon, 21 May 2012 22:13:41 +0300 Subject: [PATCH] Fix fallback code and get it working --- qcsrc/server/t_plats.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index 70f0a4776..ae4f035e1 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -285,11 +285,11 @@ void train_next() { cp = find(world, target, targ.targetname); // get the previous corner first cp = find(world, targetname, cp.target2); // now get its second target - if(!cp) + if(cp.targetname == "") // none found { - // if using bezier curves, you must have a control point for each corner in the train's path + // when using bezier curves, you must have a control point for each corner in the train's path if(autocvar_developer) - dprint("Warning: func_train using beizer curves reached a path_corner without a control point. Please add a target2 for each path_corner used by this train!"); + dprint("Warning: func_train using beizer curves reached a path_corner without 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 } } -- 2.39.2