{
#ifdef CONFIG_VIDEO_CAPTURE
if (cl_capturevideo_demo_stop.integer)
- Cvar_Set(&cvars_all, "cl_capturevideo", "0");
+ Cvar_SetQuick(&cl_capturevideo, "0");
#endif
if (!cls.demoplayback)
{
if (gamemode == GAME_NEHAHRA)
{
- Cvar_Set(&cvars_all, "gl_fogenable", "0");
- Cvar_Set(&cvars_all, "gl_fogdensity", "0.2");
- Cvar_Set(&cvars_all, "gl_fogred", "0.3");
- Cvar_Set(&cvars_all, "gl_foggreen", "0.3");
- Cvar_Set(&cvars_all, "gl_fogblue", "0.3");
+ Cvar_SetQuick(&gl_fogenable, "0");
+ Cvar_SetQuick(&gl_fogdensity, "0.2");
+ Cvar_SetQuick(&gl_fogred, "0.3");
+ Cvar_SetQuick(&gl_foggreen, "0.3");
+ Cvar_SetQuick(&gl_fogblue, "0.3");
}
r_refdef.fog_density = 0;
r_refdef.fog_red = 0;
Cvar_RegisterVariable(&r_q1bsp_lightmap_updates_combine);
Cvar_RegisterVariable(&r_q1bsp_lightmap_updates_hidden_surfaces);
if (gamemode == GAME_NEHAHRA || gamemode == GAME_TENEBRAE)
- Cvar_SetValue(&cvars_all, "r_fullbrights", 0);
+ Cvar_SetQuick(&r_fullbrights, "0");
#ifdef DP_MOBILETOUCH
// GLES devices have terrible depth precision in general, so...
Cvar_SetValueQuick(&r_nearclip, 4);
Cbuf_AddText(cmd, "stopdemo\n");
- Cvar_SetValue(&cvars_all, "port", lanConfig_port);
+ Cvar_SetValueQuick(&sv_netport, lanConfig_port);
if (lanConfig_cursor == 1 || lanConfig_cursor == 2)
{
if (gamemode == GAME_TRANSFUSION)
{
if (!coop.integer && !deathmatch.integer)
- Cvar_SetValue(&cvars_all, "deathmatch", 1);
+ Cvar_SetQuick(&deathmatch, "1");
if (deathmatch.integer == 0)
M_Print(160, 64, "Cooperative");
else if (deathmatch.integer == 2)
else if (gamemode == GAME_BATTLEMECH)
{
if (!deathmatch.integer)
- Cvar_SetValue(&cvars_all, "deathmatch", 1);
+ Cvar_SetQuick(&deathmatch, "1");
if (deathmatch.integer == 2)
M_Print(160, 64, "Rambo Match");
else
else
{
if (!coop.integer && !deathmatch.integer)
- Cvar_SetValue(&cvars_all, "deathmatch", 1);
+ Cvar_SetQuick(&deathmatch, "1");
if (coop.integer)
M_Print(160, 64, "Cooperative");
else
l = min(l - 1, 37);
memcpy(hostnamebuf, hostname.string, l);
hostnamebuf[l] = 0;
- Cvar_Set(&cvars_all, "hostname", hostnamebuf);
+ Cvar_SetQuick(&hostname, hostnamebuf);
}
}
break;
memcpy(hostnamebuf, hostname.string, l);
hostnamebuf[l] = ascii;
hostnamebuf[l+1] = 0;
- Cvar_Set(&cvars_all, "hostname", hostnamebuf);
+ Cvar_SetQuick(&hostname, hostnamebuf);
}
}
}
svs.maxclients_next = n;
if (n == 1)
- Cvar_Set (&cvars_all, "deathmatch", "0");
+ Cvar_SetQuick(&deathmatch, "0");
else
- Cvar_Set (&cvars_all, "deathmatch", "1");
+ Cvar_SetQuick(&deathmatch, "1");
}
/*
if (Sys_CheckParm ("-listen"))
Con_Printf ("Only one of -dedicated or -listen can be specified\n");
// default sv_public on for dedicated servers (often hosted by serious administrators), off for listen servers (often hosted by clueless users)
- Cvar_SetValue(&cvars_all, "sv_public", 1);
+ Cvar_SetQuick(&sv_public, "1");
Cvar_SetQuick(&sv_dedicated, "1");
}
else if (cl_available)
COM_ParseToken_Simple(&t, false, false, true);
// this silliness is so we can load 1.06 save files, which have float skill values
current_skill = (int)(atof(com_token) + 0.5);
- Cvar_SetValue (&cvars_all, "skill", (float)current_skill);
+ Cvar_SetValueQuick(&skill, (float)current_skill);
if(developer_entityparsing.integer)
Con_Printf("SV_Loadgame_f: loading mapname\n");