From: Samual Date: Thu, 10 Nov 2011 22:50:51 +0000 (-0500) Subject: Fixes for setbots command X-Git-Tag: xonotic-v0.6.0~188^2~28^2~220 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=47e4454d2b759a92d4dd707a8d2af04b44073e11;p=xonotic%2Fxonotic-data.pk3dir.git Fixes for setbots command --- diff --git a/qcsrc/server/gamecommand.qc b/qcsrc/server/gamecommand.qc index e26b4e3cb..4e1ca0bfb 100644 --- a/qcsrc/server/gamecommand.qc +++ b/qcsrc/server/gamecommand.qc @@ -1396,16 +1396,17 @@ void GameCommand_setbots(float request, float argc) { case GC_REQUEST_COMMAND: { - if(argc >= 3 && argv(1) == "setbots") + if(argc >= 2) { cvar_settemp("minplayers", "0"); - cvar_settemp("bot_number", argv(2)); + cvar_settemp("bot_number", argv(1)); bot_fixcount(); return; } } default: + print("Incorrect parameters for ^2setbots^7\n"); case GC_REQUEST_USAGE: { print("\nUsage:^3 sv_cmd setbots botnumber\n");