cvar system fixes..

Knghtbrd owes me for this one..
This commit is contained in:
Zephaniah E. Hull 2000-03-01 11:29:21 +00:00
parent fd349f60f1
commit cf0201eeea
8 changed files with 36 additions and 22 deletions

View file

@ -203,9 +203,7 @@ void R_Init (void)
#endif /* QUAKEWORLD */
r_fog = Cvar_Get ("r_fog","0",0,"None");
r_waterwarp = Cvar_Get ("r_waterwarp","0",0,"None");
#ifdef _EXPERIMENTAL_
r_volfog = Cvar_Get ("r_volfog","0",0,"None");
#endif
r_waterripple = Cvar_Get ("r_waterripple","0",0,"None");
r_clearcolor = Cvar_Get ("r_clearcolor","2",0,"None");

View file

@ -386,12 +386,7 @@ void SCR_SizeDown_f (void)
//============================================================================
/*
==================
SCR_Init
==================
*/
void SCR_Init (void)
void SCR_InitCvars (void)
{
scr_fov = Cvar_Get ("fov","90",0,"None");
scr_viewsize = Cvar_Get ("viewsize","100",CVAR_ARCHIVE,"None");
@ -402,7 +397,17 @@ void SCR_Init (void)
scr_centertime = Cvar_Get ("scr_centertime","2",0,"None");
scr_printspeed = Cvar_Get ("scr_printspeed","8",0,"None");
scr_allowsnap = Cvar_Get ("scr_allowsnap","1",0,"None");
gl_triplebuffer = Cvar_Get ("gl_triplebuffer","1",CVAR_ARCHIVE,"None");
}
/*
==================
SCR_Init
==================
*/
void SCR_Init (void)
{
//
// register our commands
//

View file

@ -549,6 +549,7 @@ Host_Init ( quakeparms_t *parms)
Memory_Init (parms->membase, parms->memsize);
CL_InitCvars();
SCR_InitCvars();
VID_InitCvars ();
Cbuf_Init ();
Cmd_Init ();

View file

@ -108,7 +108,7 @@ void COM_InitArgv (int argc, char **argv)
assert(len - strlen(com_cmdline) > 0);
strncat (com_cmdline, " ", len);
}
com_cmdline[len] = 0;
com_cmdline[len - 1] = '\0';
if (safe)
{

View file

@ -385,12 +385,7 @@ void SCR_SizeDown_f (void)
//============================================================================
/*
==================
SCR_Init
==================
*/
void SCR_Init (void)
void SCR_InitCvars (void)
{
// Cvar_RegisterVariable (&scr_fov);
scr_fov = Cvar_Get ("fov","90",0,"None");
@ -410,6 +405,15 @@ void SCR_Init (void)
scr_printspeed = Cvar_Get ("scr_printspeed","8",0,"None");
// Cvar_RegisterVariable (&scr_allowsnap);
scr_allowsnap = Cvar_Get ("scr_allowsnap","1",0,"None");
}
/*
==================
SCR_Init
==================
*/
void SCR_Init (void)
{
//
// register our commands

View file

@ -25,6 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// screen.h
void SCR_InitCvars (void);
void SCR_Init (void);
void SCR_UpdateScreen (void);

View file

@ -389,12 +389,7 @@ void SCR_SizeDown_f (void)
//============================================================================
/*
==================
SCR_Init
==================
*/
void SCR_Init (void)
void SCR_InitCvars (void)
{
// Cvar_RegisterVariable (&scr_fov);
scr_fov = Cvar_Get ("fov","90",0,"None");
@ -412,6 +407,15 @@ void SCR_Init (void)
scr_centertime = Cvar_Get ("scr_centertime","2",0,"None");
// Cvar_RegisterVariable (&scr_printspeed);
scr_printspeed = Cvar_Get ("scr_printspeed","8",0,"None");
}
/*
==================
SCR_Init
==================
*/
void SCR_Init (void)
{
//
// register our commands

View file

@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// screen.h
void SCR_InitCvars (void);
void SCR_Init (void);
void SCR_UpdateScreen (void);