From ad8e465dd457343d6256016c085d020ff6d9c5b7 Mon Sep 17 00:00:00 2001 From: puzl Date: Thu, 18 Aug 2005 22:43:06 +0000 Subject: [PATCH] o Default cl_gammaramp to 1 o Default cl_labelmaps to 1 o Added a cvar lock of gl_max_size to 256 git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@331 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.1/source/cl_dll/hud.cpp | 4 ++-- releases/3.1/source/mod/AvHHud.cpp | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/releases/3.1/source/cl_dll/hud.cpp b/releases/3.1/source/cl_dll/hud.cpp index aedba00..0056a7c 100644 --- a/releases/3.1/source/cl_dll/hud.cpp +++ b/releases/3.1/source/cl_dll/hud.cpp @@ -207,8 +207,8 @@ void CHud :: Init( void ) cl_lw = gEngfuncs.pfnGetCvarPointer( "cl_lw" ); CVAR_CREATE( "cl_showspeed", "0", 0); - CVAR_CREATE( kvLabelMaps, "0", FCVAR_ARCHIVE); - CVAR_CREATE( kvGammaRamp, "0", FCVAR_ARCHIVE); + CVAR_CREATE( kvLabelMaps, "1", FCVAR_ARCHIVE); + CVAR_CREATE( kvGammaRamp, "1", FCVAR_ARCHIVE); m_pSpriteList = NULL; diff --git a/releases/3.1/source/mod/AvHHud.cpp b/releases/3.1/source/mod/AvHHud.cpp index cae4950..743772f 100644 --- a/releases/3.1/source/mod/AvHHud.cpp +++ b/releases/3.1/source/mod/AvHHud.cpp @@ -261,6 +261,7 @@ cvar_t *gl_d3dflip = NULL; cvar_t *s_show = NULL; cvar_t *lightgamma = NULL; cvar_t *r_detailtextures = NULL; +cvar_t *gl_max_size = NULL; const AvHMapExtents& GetMapExtents() { @@ -1818,7 +1819,7 @@ bool AvHHud::SetGamma(float inSlope) sGameGammaTable.ProcessSlope(theGammaToTry); // tankefugl: fakes a successful gamma ramp change if cl_gammaramp is set to 0 - if((CVAR_GET_FLOAT(kvGammaRamp) == 0) || sGameGammaTable.InitializeToVideoState()) + if((CVAR_GET_FLOAT(kvDisableGammaRamp) == 1) || sGameGammaTable.InitializeToVideoState()) { // Tell UI components so they can change shading to look the same this->GetManager().NotifyGammaChange(theGammaToTry); @@ -3676,6 +3677,7 @@ void AvHHud::Init(void) s_show = gEngfuncs.pfnGetCvarPointer("s_show"); lightgamma = gEngfuncs.pfnGetCvarPointer("lightgamma"); r_detailtextures = gEngfuncs.pfnGetCvarPointer("r_detailtextures"); + gl_max_size = gEngfuncs.pfnGetCvarPointer("gl_max_size"); } // This gives the HUD a chance to draw after the VGUI. A component must allow itself to be hooked by calling this function @@ -4654,6 +4656,7 @@ void AvHHud::UpdateExploitPrevention() FORCE_CVAR(gl_d3dflip, 1.0f); FORCE_CVAR(s_show, 0.0f); FORCE_CVAR(r_detailtextures, 0.0f); + FORCE_CVAR(gl_max_size, 256.0f); if(lightgamma && lightgamma->value < 2.0) lightgamma->value = 2.0f;