mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 16:41:31 +00:00
Don't register fs_game cvar everywhere just to get the value
This commit is contained in:
parent
3a6af1bc48
commit
adef4e6c9e
4 changed files with 17 additions and 26 deletions
|
@ -176,15 +176,13 @@ void SV_GetChallenge(netadr_t from)
|
|||
else
|
||||
{
|
||||
// otherwise send their ip to the authorize server
|
||||
cvar_t *fs;
|
||||
char game[1024];
|
||||
const char *game;
|
||||
|
||||
Com_DPrintf( "sending getIpAuthorize for %s\n", NET_AdrToString( from ));
|
||||
|
||||
strcpy(game, BASEGAME);
|
||||
fs = Cvar_Get ("fs_game", "", CVAR_INIT|CVAR_SYSTEMINFO );
|
||||
if (fs && fs->string[0] != 0) {
|
||||
strcpy(game, fs->string);
|
||||
game = Cvar_VariableString( "fs_game" );
|
||||
if (game[0] == 0) {
|
||||
game = BASEGAME;
|
||||
}
|
||||
|
||||
// the 0 is for backwards compatibility with obsolete sv_allowanonymous flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue