From ba89f7cdf5c9aa4d4153e5d1a6ec6d2130f6c403 Mon Sep 17 00:00:00 2001 From: cholleme <> Date: Wed, 25 Jun 2003 09:16:49 +0000 Subject: [PATCH] Console commands cleanup --- view.c | 10 +++++----- view.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/view.c b/view.c index ddced90..b0282e2 100644 --- a/view.c +++ b/view.c @@ -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); } diff --git a/view.h b/view.h index 82123a1..85fa808 100644 --- a/view.h +++ b/view.h @@ -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];