diff options
author | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-04-21 17:04:21 +0000 |
---|---|---|
committer | thilo <thilo@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-04-21 17:04:21 +0000 |
commit | 359864866cdaab7fad5ae6b734f4b011e0e75bb3 (patch) | |
tree | 741b147c5a3a00f3b96a154d85cbc931775b1bdb /code/game | |
parent | 594cac092924f5ecdf27bab448c28ea8686111db (diff) | |
download | ioquake3-aero-359864866cdaab7fad5ae6b734f4b011e0e75bb3.tar.gz ioquake3-aero-359864866cdaab7fad5ae6b734f4b011e0e75bb3.zip |
- 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.
git-svn-id: svn://svn.icculus.org/quake3/trunk@715 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/game')
-rw-r--r-- | code/game/ai_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/code/game/ai_main.c b/code/game/ai_main.c index f67af0e..b0cfd70 100644 --- a/code/game/ai_main.c +++ b/code/game/ai_main.c @@ -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); |