From 97056fbf4fead4f9b68a7ec6ad0ecaec8d5f5d07 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Mon, 27 Oct 2014 15:49:23 -0500 Subject: Fix pid file ignoring user set fs_homepath Create pid file in fs_homepath instead of (always) default homepath. If not manually set, fs_homepath is set to Sys_DefaultHomePath(). --- src/sys/sys_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c index ed5f8e5a..53084846 100644 --- a/src/sys/sys_main.c +++ b/src/sys/sys_main.c @@ -170,7 +170,7 @@ Sys_PIDFileName */ static char *Sys_PIDFileName( void ) { - const char *homePath = Sys_DefaultHomePath( ); + const char *homePath = Cvar_VariableString( "fs_homepath" ); if( *homePath != '\0' ) return va( "%s/%s", homePath, PID_FILENAME ); -- cgit