Don't register fs_game cvar everywhere just to get the value
This commit is contained in:
1 parent
3a6af1bc48
commit
adef4e6c9e
4 files changed
+17
-26
No files matched your search
@@ -3369,14 +3369,10 @@ static void FS_Startup( const char *gameName )
|
||||
}
|
||||
|
||||
#ifndef STANDALONE
|
||||
if(!com_standalone->integer)
|
||||
{
|
||||
cvar_t *fs;
|
||||
|
||||
if (!com_standalone->integer) {
|
||||
Com_ReadCDKey(BASEGAME);
|
||||
fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );
|
||||
if (fs && fs->string[0] != 0) {
|
||||
Com_AppendCDKey( fs->string );
|
||||
if (fs_gamedirvar->string[0]) {
|
||||
Com_AppendCDKey(fs_gamedirvar->string);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user