idlebots update

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6435 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-05-14 16:27:50 +00:00
parent c85be9cb54
commit f5b33a6a7b
+11 -8
View File
@@ -1026,15 +1026,18 @@ COMMAND(botsshoot, ARG_1INT);
void idlebots(int Idle)
{
if (Idle)
switch(Idle)
{
BotManager.SetIdleBots(true);
conoutf("Bots are idle");
}
else
{
BotManager.SetIdleBots(false);
conoutf("Bots aren't idle");
case 0:
BotManager.SetIdleBots(false);
conoutf("Bots aren't idle");
break;
case 1:
BotManager.SetIdleBots(true);
conoutf("Bots are idle");
break;
default:
intret(BotManager.IdleBots()); break;
}
}