]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/command/cmd.qc
WIP: Bot waypoints: add new command "wpeditor spawn crosshair" that spawn a waypoint...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / command / cmd.qc
index 1395986b97bd3a463ab33c16e8508da381f992ca..9ce1504d8e48e311774ca6222fb9bbfe4f7ca9e6 100644 (file)
@@ -187,7 +187,7 @@ void ClientCommand_wpeditor(entity caller, int request, int argc)
                                        if (!IS_PLAYER(caller))
                                                sprint(caller, "ERROR: this command works only if you are player\n");
                                        else
-                                               waypoint_spawn_fromeditor(caller);
+                                               waypoint_spawn_fromeditor(caller, (argv(2) == "crosshair"));
                                        return;
                                }
                                else if (argv(1) == "remove")