From: terencehill Date: Tue, 14 Feb 2017 14:09:40 +0000 (+0100) Subject: Fix usage message of bot_cmd moveto X-Git-Tag: xonotic-v0.8.2~202^2~9 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f873097f5ded4b7a43e424a97c2407f5b175ad88;p=xonotic%2Fxonotic-data.pk3dir.git Fix usage message of bot_cmd moveto --- diff --git a/qcsrc/server/bot/default/scripting.qc b/qcsrc/server/bot/default/scripting.qc index f975f74e5..1531cde98 100644 --- a/qcsrc/server/bot/default/scripting.qc +++ b/qcsrc/server/bot/default/scripting.qc @@ -311,6 +311,11 @@ float bot_decodecommand(string cmdstring) bot_cmd.bot_cmd_parm_string = strzone(parm); break; case BOT_CMD_PARAMETER_VECTOR: + if(substring(parm, 0, 1) != "\'") + { + LOG_INFOF("ERROR: expected vector type \'x y z\', got %s\n", parm); + return 0; + } bot_cmd.bot_cmd_parm_vector = stov(parm); break; default: @@ -377,7 +382,7 @@ void bot_cmdhelp(string scmd) LOG_INFO("Look to the right or left N degrees. For turning to the left use positive numbers."); break; case BOT_CMD_MOVETO: - LOG_INFO("Walk to an specific coordinate on the map. Usage: moveto \"x y z\""); + LOG_INFO("Walk to an specific coordinate on the map. Usage: moveto \'x y z\'"); break; case BOT_CMD_MOVETOTARGET: LOG_INFO("Walk to the specific target on the map");