diff options
Diffstat (limited to 'src/qcommon/files.c')
-rw-r--r-- | src/qcommon/files.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/qcommon/files.c b/src/qcommon/files.c index c11e9ba8..8e32c9ff 100644 --- a/src/qcommon/files.c +++ b/src/qcommon/files.c @@ -3512,9 +3512,12 @@ void FS_InitFilesystem( void ) { // we have to specially handle this, because normal command // line variable sets don't happen until after the filesystem // has already been initialized - Com_StartupVariable( "fs_basepath" ); - Com_StartupVariable( "fs_homepath" ); - Com_StartupVariable( "fs_game" ); + Com_StartupVariable("fs_basepath"); + Com_StartupVariable("fs_homepath"); + Com_StartupVariable("fs_game"); + + if(!FS_FilenameCompare(Cvar_VariableString("fs_game"), BASEGAME)) + Cvar_Set("fs_game", ""); // try to start up normally FS_Startup( BASEGAME ); |