From: Mircea Kitsune Date: Mon, 21 May 2012 19:26:30 +0000 (+0300) Subject: Print the name of the correct beizer curve in debug message X-Git-Tag: xonotic-v0.8.0~295^2~52 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=57a526e6bbb9ca928796db4aad61ec6089cd6959;p=xonotic%2Fxonotic-data.pk3dir.git Print the name of the correct beizer curve in debug message --- diff --git a/qcsrc/server/t_plats.qc b/qcsrc/server/t_plats.qc index c253d41d7..719359e2d 100644 --- a/qcsrc/server/t_plats.qc +++ b/qcsrc/server/t_plats.qc @@ -283,13 +283,14 @@ void train_next() self.target = targ.target; if (self.spawnflags & 1) { - cp = find(world, target, targ.targetname); // get the previous corner first - cp = find(world, targetname, cp.target2); // now get its second target + entity prev; + prev = find(world, target, targ.targetname); // get the previous corner first + cp = find(world, targetname, prev.target2); // now get its second target if(cp.targetname == "") // none found { // 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")); + dprint(strcat("Warning: func_train using beizer curves reached the path_corner '", prev.targetname, "' which does not have a control point. Please add a target2 for each path_corner used by this train!\n")); cp = spawn(); setorigin(cp, targ.origin - self.mins); // assume a straight line to the destination as fallback }