- botlib logfile now gets stored in the fs_game directory in fs_homepath. (patch from Erik Auerswald)

- Added proper error handling when fopening qconsole.log
- Fixed bug where r_chat.c gets loaded in botlib even when bot_nochat is 1.
This commit is contained in:
Thilo Schulz 2006-04-21 17:04:21 +00:00
parent 57cc0f901e
commit e7daf33d8e
3 changed files with 31 additions and 7 deletions

View file

@ -1593,10 +1593,11 @@ int BotInitLibrary(void) {
trap_BotLibVarSet("g_gametype", buf);
//bot developer mode and log file
trap_BotLibVarSet("bot_developer", bot_developer.string);
trap_Cvar_VariableStringBuffer("logfile", buf, sizeof(buf));
trap_BotLibVarSet("log", buf);
//no chatting
trap_Cvar_VariableStringBuffer("bot_nochat", buf, sizeof(buf));
if (strlen(buf)) trap_BotLibVarSet("nochat", "0");
if (strlen(buf)) trap_BotLibVarSet("nochat", buf);
//visualize jump pads
trap_Cvar_VariableStringBuffer("bot_visualizejumppads", buf, sizeof(buf));
if (strlen(buf)) trap_BotLibVarSet("bot_visualizejumppads", buf);