diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-02-28 21:39:54 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-02-28 21:39:54 +0000 |
commit | 9831a9e955d3f1466047c6bf9666b8ad498a2129 (patch) | |
tree | fc0b1467a4cbbcec38919a99efaa5642f97b92ec /code/qcommon | |
parent | f239ea4ac4ca4718b29586485235bf31a4edbbe5 (diff) | |
download | ioquake3-aero-9831a9e955d3f1466047c6bf9666b8ad498a2129.tar.gz ioquake3-aero-9831a9e955d3f1466047c6bf9666b8ad498a2129.zip |
* Write q3config_server.cfg for the server, to avoid reseting client variables
after running a dedicated server
git-svn-id: svn://svn.icculus.org/quake3/trunk@1269 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/common.c | 4 | ||||
-rw-r--r-- | code/qcommon/files.c | 2 | ||||
-rw-r--r-- | code/qcommon/qcommon.h | 6 |
3 files changed, 9 insertions, 3 deletions
diff --git a/code/qcommon/common.c b/code/qcommon/common.c index d3bb089..41cbbc0 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -2537,7 +2537,7 @@ void Com_Init( char *commandLine ) { // skip the q3config.cfg if "safe" is on the command line if ( !Com_SafeMode() ) { - Cbuf_AddText ("exec q3config.cfg\n"); + Cbuf_AddText ("exec " Q3CONFIG_CFG "\n"); } Cbuf_AddText ("exec autoexec.cfg\n"); @@ -2690,7 +2690,7 @@ void Com_WriteConfiguration( void ) { } cvar_modifiedFlags &= ~CVAR_ARCHIVE; - Com_WriteConfigToFile( "q3config.cfg" ); + Com_WriteConfigToFile( Q3CONFIG_CFG ); // not needed for dedicated #ifndef DEDICATED diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 5d19916..ba50222 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -3317,7 +3317,7 @@ void FS_Restart( int checksumFeed ) { if ( Q_stricmp(fs_gamedirvar->string, lastValidGame) ) { // skip the q3config.cfg if "safe" is on the command line if ( !Com_SafeMode() ) { - Cbuf_AddText ("exec q3config.cfg\n"); + Cbuf_AddText ("exec " Q3CONFIG_CFG "\n"); } } diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index 33d3d9e..817bbab 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -536,6 +536,12 @@ issues. #define MAX_FILE_HANDLES 64 +#ifdef DEDICATED +# define Q3CONFIG_CFG "q3config_server.cfg" +#else +# define Q3CONFIG_CFG "q3config.cfg" +#endif + qboolean FS_Initialized( void ); void FS_InitFilesystem ( void ); |