updates/fixes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6495 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-06-04 14:29:21 +00:00
parent 32712318da
commit ad12e10ea5
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -1128,6 +1128,11 @@ COMMAND(togglegrap, ARG_NONE);
void togglebotview(char *bot)
{
if(!botmode()) return;
/**
Disable in arena modes, this command causes the game to go in an "infinite loop"
due to player1 automatically suiciding thus causing a new round to begin.
*/
if(m_arena) { conoutf("togglebotview is not allowed in %s", modestr(gamemode, modeacronyms > 0)); return; }
if (BotManager.m_pBotToView)
BotManager.DisableBotView();
else if (bot && *bot)