diff options
author | Thilo Schulz <arny@ats.s.bawue.de> | 2011-08-24 14:47:57 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-10 23:37:16 +0000 |
commit | c02b117b94f6465556d882fcf515c4d6041644f6 (patch) | |
tree | ea5aa5a371418a445766b85d20d4850203215980 /src/qcommon/cvar.c | |
parent | bbc19311f31e8983c2dcfbe2992122fe911282c2 (diff) |
Fix auto game-restart when disconnecting from a server that explicitly set fs_game to "baseq3" instead of ""
Diffstat (limited to 'src/qcommon/cvar.c')
-rw-r--r-- | src/qcommon/cvar.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/qcommon/cvar.c b/src/qcommon/cvar.c index 0954e1f6..f71bc74f 100644 --- a/src/qcommon/cvar.c +++ b/src/qcommon/cvar.c @@ -169,10 +169,15 @@ int Cvar_Flags(const char *var_name) { cvar_t *var; - if(! (var = Cvar_FindVar(var_name)) ) + if(!(var = Cvar_FindVar(var_name))) return CVAR_NONEXISTENT; else - return var->flags; + { + if(var->modified) + return var->flags | CVAR_MODIFIED; + else + return var->flags; + } } /* |