Console commands cleanup

This commit is contained in:
cholleme 2003-06-25 09:16:49 +00:00
parent c8538e9236
commit ba89f7cdf5
2 changed files with 6 additions and 6 deletions

10
view.c
View file

@ -256,7 +256,7 @@ cshift_t cshift_water = { {130,80,50}, 128 };
cshift_t cshift_slime = { {0,25,5}, 150 };
cshift_t cshift_lava = { {255,80,0}, 150 };
cvar_t v_gamma = {"gamma", "1", true};
cvar_t r_intensity = {"r_intensity", "1", true};
byte gammatable[256]; // palette is sent through this
@ -296,11 +296,11 @@ qboolean V_CheckGamma (void)
{
static float oldgammavalue;
if (v_gamma.value == oldgammavalue)
if (r_intensity.value == oldgammavalue)
return false;
oldgammavalue = v_gamma.value;
oldgammavalue = r_intensity.value;
BuildGammaTable (v_gamma.value);
BuildGammaTable (r_intensity.value);
vid.recalc_refdef = 1; // force a surface cache flush
return true;
@ -1113,7 +1113,7 @@ void V_Init (void)
Cvar_RegisterVariable (&v_kickpitch);
BuildGammaTable (1.0); // no gamma yet
Cvar_RegisterVariable (&v_gamma);
Cvar_RegisterVariable (&r_intensity);
}

2
view.h
View file

@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// view.h
extern cvar_t v_gamma;
extern cvar_t r_intensity;
extern byte gammatable[256]; // palette is sent through this
extern byte ramps[3][256];