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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user