botsshoot/bot survival mode update, tolower/upper, convertcase, and testchar
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6436 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1010,15 +1010,18 @@ COMMAND(addnbot, ARG_3STR);
|
||||
|
||||
void botsshoot(int Shoot)
|
||||
{
|
||||
if (Shoot)
|
||||
switch(Shoot)
|
||||
{
|
||||
BotManager.SetBotsShoot(true);
|
||||
conoutf("Bots will shoot");
|
||||
}
|
||||
else
|
||||
{
|
||||
BotManager.SetBotsShoot(false);
|
||||
conoutf("Bots won't shoot");
|
||||
case 0:
|
||||
BotManager.SetBotsShoot(false);
|
||||
conoutf("Bots won't shoot");
|
||||
break;
|
||||
case 1:
|
||||
BotManager.SetBotsShoot(true);
|
||||
conoutf("Bots will shoot");
|
||||
break;
|
||||
default:
|
||||
intret(BotManager.BotsShoot()); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user