From 22fcd82965f7a65b511176389149c47391f97cb1 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 23 Dec 2017 17:01:06 -0600 Subject: [PATCH] Make FS_BuildOSPath for botlib.log consistent with typical usage I don't think anywhere else uses "" to mean current game directory. Though it's only an issue for my fork where I removed that behavior. --- code/botlib/l_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/botlib/l_log.c b/code/botlib/l_log.c index 0cfd491c..4d7c4e89 100644 --- a/code/botlib/l_log.c +++ b/code/botlib/l_log.c @@ -71,7 +71,7 @@ void Log_Open(char *filename) botimport.Print(PRT_ERROR, "log file %s is already opened\n", logfile.filename); return; } //end if - ospath = FS_BuildOSPath(Cvar_VariableString("fs_homepath"), "", filename); + ospath = FS_BuildOSPath(Cvar_VariableString("fs_homepath"), Cvar_VariableString("fs_game"), filename); logfile.fp = fopen(ospath, "wb"); if (!logfile.fp) {