add r_norefresh support to sw and sw32 and rename the console side of the

cvar to get around the evil in customtf
This commit is contained in:
Bill Currie 2004-04-16 03:24:10 +00:00
parent 37a5938b87
commit 1f9d75a7c7
3 changed files with 7 additions and 1 deletions

View file

@ -373,7 +373,7 @@ R_Init_Cvars (void)
"Net graph translucency");
r_netgraph_box = Cvar_Get ("r_netgraph_box", "1", CVAR_ARCHIVE, NULL,
"Draw box around net graph");
r_norefresh = Cvar_Get ("r_norefresh", "0", CVAR_NONE, NULL,
r_norefresh = Cvar_Get ("r_norefresh_", "0", CVAR_NONE, NULL,
"Set to 1 to disable display refresh");
r_novis = Cvar_Get ("r_novis", "0", CVAR_NONE, NULL, "Set to 1 to enable "
"runtime visibility checking (SLOW)");

View file

@ -794,6 +794,9 @@ R_RenderView_ (void)
{
byte warpbuffer[WARP_WIDTH * WARP_HEIGHT];
if (r_norefresh->int_val)
return;
r_warpbuffer = warpbuffer;
if (r_timegraph->int_val || r_speeds->int_val || r_dspeeds->int_val)

View file

@ -812,6 +812,9 @@ byte warpbuffer[WARP_WIDTH * WARP_HEIGHT * 4];
static void
R_RenderView_ (void)
{
if (r_norefresh->int_val)
return;
r_warpbuffer = warpbuffer;
if (r_timegraph->int_val || r_speeds->int_val || r_dspeeds->int_val)