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.
This commit is contained in:
Zack Middleton 2017-12-23 17:01:06 -06:00
parent f3bdd6f022
commit 22fcd82965

View file

@ -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)
{