[ioquake3] 02/09: Make FS_BuildOSPath for botlib.log consistent with typical usage
Simon McVittie
smcv at debian.org
Thu Jan 11 09:34:20 UTC 2018
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag debian/1.36+u20180108_dfsg-1
in repository ioquake3.
commit 22fcd82965f7a65b511176389149c47391f97cb1
Author: Zack Middleton <zack at cloemail.com>
Date: Sat Dec 23 17:01:06 2017 -0600
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 0cfd491..4d7c4e8 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)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list