Added a cvar to disable autoid.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1386 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
de790a2d35
commit
493ddb6862
1 changed files with 6 additions and 0 deletions
|
@ -96,6 +96,8 @@ cvar_t v_pentcshift = {"v_pentcshift", "0"};
|
||||||
|
|
||||||
cvar_t v_viewheight = {"v_viewheight", "0"};
|
cvar_t v_viewheight = {"v_viewheight", "0"};
|
||||||
|
|
||||||
|
cvar_t scr_autoid = {"scr_autoid", "0"};
|
||||||
|
|
||||||
|
|
||||||
extern cvar_t cl_chasecam;
|
extern cvar_t cl_chasecam;
|
||||||
|
|
||||||
|
@ -1294,6 +1296,8 @@ void R_DrawNameTags(void)
|
||||||
|
|
||||||
if (!cl.spectator && !cls.demoplayback)
|
if (!cl.spectator && !cls.demoplayback)
|
||||||
return;
|
return;
|
||||||
|
if (!scr_autoid.value)
|
||||||
|
return;
|
||||||
|
|
||||||
#ifdef RGLQUAKE
|
#ifdef RGLQUAKE
|
||||||
if (qrenderer == QR_OPENGL)
|
if (qrenderer == QR_OPENGL)
|
||||||
|
@ -1619,6 +1623,8 @@ void V_Init (void)
|
||||||
Cvar_Register (&v_idlescale, VIEWVARS);
|
Cvar_Register (&v_idlescale, VIEWVARS);
|
||||||
Cvar_Register (&v_deathtilt, VIEWVARS);
|
Cvar_Register (&v_deathtilt, VIEWVARS);
|
||||||
|
|
||||||
|
Cvar_Register (&scr_autoid, VIEWVARS);
|
||||||
|
|
||||||
#ifdef SIDEVIEWS
|
#ifdef SIDEVIEWS
|
||||||
#define SECONDARYVIEWVARS "Secondary view vars"
|
#define SECONDARYVIEWVARS "Secondary view vars"
|
||||||
for (i = 0; i < SIDEVIEWS; i++)
|
for (i = 0; i < SIDEVIEWS; i++)
|
||||||
|
|
Loading…
Reference in a new issue