Reverted cl_gammaramp to be 0 = disabled, 1 = enabled.

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@334 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
tankefugl 2005-09-26 17:13:52 +00:00
parent e5a83b647a
commit 162e23928f
3 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ extern cvar_t* cl_musicdir;
#define kvLabelMaps "cl_labelmaps"
// :puzl
// tankefugl: 0001070 - enables forced gamma ramp loading
#define kvDisableGammaRamp "cl_gammaramp"
#define kvGammaRamp "cl_gammaramp"
// :tankefugl
#define kvCMHotKeys "cl_cmhotkeys"
#define kvForceDefaultFOV "cl_forcedefaultfov"

View File

@ -1818,8 +1818,8 @@ bool AvHHud::SetGamma(float inSlope)
theGammaToTry -= kGammaIncrement;
sGameGammaTable.ProcessSlope(theGammaToTry);
// tankefugl: fakes a successful gamma ramp change if cl_gammaramp is set to 1
if((CVAR_GET_FLOAT(kvDisableGammaRamp) == 1) || sGameGammaTable.InitializeToVideoState())
// tankefugl: fakes a successful gamma ramp change if cl_gammaramp is set to 0
if((CVAR_GET_FLOAT(kvGammaRamp) == 0) || sGameGammaTable.InitializeToVideoState())
{
// Tell UI components so they can change shading to look the same
this->GetManager().NotifyGammaChange(theGammaToTry);

View File

@ -93,9 +93,9 @@ DESCRIPTION INFO_OPTIONS
"cl_gammaramp"
{
"Disable gamma ramp"
"Enable gamma ramp"
{ BOOL }
{ "0" }
{ "1" }
}
"hud_fastswitch"