]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Include the targetname of the problematic path_corner in the debug print
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 21 May 2012 19:19:10 +0000 (22:19 +0300)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 21 May 2012 19:19:10 +0000 (22:19 +0300)
qcsrc/server/t_plats.qc

index ae4f035e10c44e7c20cd0d59d5dcc2b9b64e999f..796d9eeab025db9386a0e868e66068bfb511fa60 100644 (file)
@@ -289,7 +289,7 @@ 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("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");
+                               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
                }
        }