diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-04-14 20:35:47 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2006-04-14 20:35:47 +0000 |
commit | ebc324c51129913005829783f8ea76b490bd4fcb (patch) | |
tree | 76e73a7255162a2d35b6da6bef3a3879342b9b56 /code/botlib | |
parent | 59c60a2cbaa8f89d389af3b5ef93b13b80b80b88 (diff) | |
download | ioquake3-aero-ebc324c51129913005829783f8ea76b490bd4fcb.tar.gz ioquake3-aero-ebc324c51129913005829783f8ea76b490bd4fcb.zip |
* Output botlib.log in a sensible place (from Erik Auerswald)
git-svn-id: svn://svn.icculus.org/quake3/trunk@705 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/botlib')
-rw-r--r-- | code/botlib/be_interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/code/botlib/be_interface.c b/code/botlib/be_interface.c index d058573..b6862af 100644 --- a/code/botlib/be_interface.c +++ b/code/botlib/be_interface.c @@ -136,12 +136,14 @@ qboolean BotLibSetup(char *str) int Export_BotLibSetup(void) { int errnum; + char logfilename[MAX_QPATH]; bot_developer = LibVarGetValue("bot_developer"); memset( &botlibglobals, 0, sizeof(botlibglobals) ); // bk001207 - init //initialize byte swapping (litte endian etc.) // Swap_Init(); - Log_Open("botlib.log"); + Com_sprintf(logfilename, sizeof(logfilename), "%s%cbotlib.log", LibVarGetString("homedir"), PATH_SEP); + Log_Open(logfilename); // botimport.Print(PRT_MESSAGE, "------- BotLib Initialization -------\n"); // |