From dfa4bb52a7ac0b1f99d1ce9f78ec0ffbb7d7febc Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 16 Apr 2006 00:38:56 +0000 Subject: * Merged ioq3-r708 --- src/botlib/be_interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/botlib') diff --git a/src/botlib/be_interface.c b/src/botlib/be_interface.c index fe5cbe8d..e70a6d4a 100644 --- a/src/botlib/be_interface.c +++ b/src/botlib/be_interface.c @@ -137,12 +137,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"); // -- cgit