Add back 'spectator' and 'password' cvars.

Those are special cvars that just need to be registered. They're used
in the servers userinfo structures. This closes issue #166.
This commit is contained in:
Yamagi Burmeister 2017-01-02 19:44:49 +01:00
parent 44472722e0
commit 55d7842a02

View file

@ -537,6 +537,10 @@ CL_InitLocal(void)
gender_auto = Cvar_Get("gender_auto", "1", CVAR_ARCHIVE);
gender->modified = false;
// USERINFO cvars are special, they just need to be registered
Cvar_Get("password", "", CVAR_USERINFO);
Cvar_Get("spectator", "0", CVAR_USERINFO);
cl_vwep = Cvar_Get("cl_vwep", "1", CVAR_ARCHIVE);
/* register our commands */