mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-18 01:31:21 +00:00
cvar system fixes..
Knghtbrd owes me for this one..
This commit is contained in:
parent
fd349f60f1
commit
cf0201eeea
8 changed files with 36 additions and 22 deletions
|
@ -203,9 +203,7 @@ void R_Init (void)
|
||||||
#endif /* QUAKEWORLD */
|
#endif /* QUAKEWORLD */
|
||||||
r_fog = Cvar_Get ("r_fog","0",0,"None");
|
r_fog = Cvar_Get ("r_fog","0",0,"None");
|
||||||
r_waterwarp = Cvar_Get ("r_waterwarp","0",0,"None");
|
r_waterwarp = Cvar_Get ("r_waterwarp","0",0,"None");
|
||||||
#ifdef _EXPERIMENTAL_
|
|
||||||
r_volfog = Cvar_Get ("r_volfog","0",0,"None");
|
r_volfog = Cvar_Get ("r_volfog","0",0,"None");
|
||||||
#endif
|
|
||||||
r_waterripple = Cvar_Get ("r_waterripple","0",0,"None");
|
r_waterripple = Cvar_Get ("r_waterripple","0",0,"None");
|
||||||
r_clearcolor = Cvar_Get ("r_clearcolor","2",0,"None");
|
r_clearcolor = Cvar_Get ("r_clearcolor","2",0,"None");
|
||||||
|
|
||||||
|
|
|
@ -386,12 +386,7 @@ void SCR_SizeDown_f (void)
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
/*
|
void SCR_InitCvars (void)
|
||||||
==================
|
|
||||||
SCR_Init
|
|
||||||
==================
|
|
||||||
*/
|
|
||||||
void SCR_Init (void)
|
|
||||||
{
|
{
|
||||||
scr_fov = Cvar_Get ("fov","90",0,"None");
|
scr_fov = Cvar_Get ("fov","90",0,"None");
|
||||||
scr_viewsize = Cvar_Get ("viewsize","100",CVAR_ARCHIVE,"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_centertime = Cvar_Get ("scr_centertime","2",0,"None");
|
||||||
scr_printspeed = Cvar_Get ("scr_printspeed","8",0,"None");
|
scr_printspeed = Cvar_Get ("scr_printspeed","8",0,"None");
|
||||||
scr_allowsnap = Cvar_Get ("scr_allowsnap","1",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
|
// register our commands
|
||||||
//
|
//
|
||||||
|
|
|
@ -549,6 +549,7 @@ Host_Init ( quakeparms_t *parms)
|
||||||
|
|
||||||
Memory_Init (parms->membase, parms->memsize);
|
Memory_Init (parms->membase, parms->memsize);
|
||||||
CL_InitCvars();
|
CL_InitCvars();
|
||||||
|
SCR_InitCvars();
|
||||||
VID_InitCvars ();
|
VID_InitCvars ();
|
||||||
Cbuf_Init ();
|
Cbuf_Init ();
|
||||||
Cmd_Init ();
|
Cmd_Init ();
|
||||||
|
|
|
@ -108,7 +108,7 @@ void COM_InitArgv (int argc, char **argv)
|
||||||
assert(len - strlen(com_cmdline) > 0);
|
assert(len - strlen(com_cmdline) > 0);
|
||||||
strncat (com_cmdline, " ", len);
|
strncat (com_cmdline, " ", len);
|
||||||
}
|
}
|
||||||
com_cmdline[len] = 0;
|
com_cmdline[len - 1] = '\0';
|
||||||
|
|
||||||
if (safe)
|
if (safe)
|
||||||
{
|
{
|
||||||
|
|
|
@ -385,12 +385,7 @@ void SCR_SizeDown_f (void)
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
/*
|
void SCR_InitCvars (void)
|
||||||
==================
|
|
||||||
SCR_Init
|
|
||||||
==================
|
|
||||||
*/
|
|
||||||
void SCR_Init (void)
|
|
||||||
{
|
{
|
||||||
// Cvar_RegisterVariable (&scr_fov);
|
// Cvar_RegisterVariable (&scr_fov);
|
||||||
scr_fov = Cvar_Get ("fov","90",0,"None");
|
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");
|
scr_printspeed = Cvar_Get ("scr_printspeed","8",0,"None");
|
||||||
// Cvar_RegisterVariable (&scr_allowsnap);
|
// Cvar_RegisterVariable (&scr_allowsnap);
|
||||||
scr_allowsnap = Cvar_Get ("scr_allowsnap","1",0,"None");
|
scr_allowsnap = Cvar_Get ("scr_allowsnap","1",0,"None");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
==================
|
||||||
|
SCR_Init
|
||||||
|
==================
|
||||||
|
*/
|
||||||
|
void SCR_Init (void)
|
||||||
|
{
|
||||||
|
|
||||||
//
|
//
|
||||||
// register our commands
|
// register our commands
|
||||||
|
|
|
@ -25,6 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
// screen.h
|
// screen.h
|
||||||
|
|
||||||
|
void SCR_InitCvars (void);
|
||||||
void SCR_Init (void);
|
void SCR_Init (void);
|
||||||
|
|
||||||
void SCR_UpdateScreen (void);
|
void SCR_UpdateScreen (void);
|
||||||
|
|
|
@ -389,12 +389,7 @@ void SCR_SizeDown_f (void)
|
||||||
|
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
/*
|
void SCR_InitCvars (void)
|
||||||
==================
|
|
||||||
SCR_Init
|
|
||||||
==================
|
|
||||||
*/
|
|
||||||
void SCR_Init (void)
|
|
||||||
{
|
{
|
||||||
// Cvar_RegisterVariable (&scr_fov);
|
// Cvar_RegisterVariable (&scr_fov);
|
||||||
scr_fov = Cvar_Get ("fov","90",0,"None");
|
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");
|
scr_centertime = Cvar_Get ("scr_centertime","2",0,"None");
|
||||||
// Cvar_RegisterVariable (&scr_printspeed);
|
// Cvar_RegisterVariable (&scr_printspeed);
|
||||||
scr_printspeed = Cvar_Get ("scr_printspeed","8",0,"None");
|
scr_printspeed = Cvar_Get ("scr_printspeed","8",0,"None");
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
==================
|
||||||
|
SCR_Init
|
||||||
|
==================
|
||||||
|
*/
|
||||||
|
void SCR_Init (void)
|
||||||
|
{
|
||||||
|
|
||||||
//
|
//
|
||||||
// register our commands
|
// register our commands
|
||||||
|
|
|
@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
// screen.h
|
// screen.h
|
||||||
|
|
||||||
|
void SCR_InitCvars (void);
|
||||||
void SCR_Init (void);
|
void SCR_Init (void);
|
||||||
|
|
||||||
void SCR_UpdateScreen (void);
|
void SCR_UpdateScreen (void);
|
||||||
|
|
Loading…
Reference in a new issue