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:
parent
f3bdd6f022
commit
22fcd82965
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ void Log_Open(char *filename)
|
||||||
botimport.Print(PRT_ERROR, "log file %s is already opened\n", logfile.filename);
|
botimport.Print(PRT_ERROR, "log file %s is already opened\n", logfile.filename);
|
||||||
return;
|
return;
|
||||||
} //end if
|
} //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");
|
logfile.fp = fopen(ospath, "wb");
|
||||||
if (!logfile.fp)
|
if (!logfile.fp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue