diff --git a/releases/3.1/source/mod/AvHClientVariables.h b/releases/3.1/source/mod/AvHClientVariables.h index 1f80139..4d98056 100644 --- a/releases/3.1/source/mod/AvHClientVariables.h +++ b/releases/3.1/source/mod/AvHClientVariables.h @@ -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" diff --git a/releases/3.1/source/mod/AvHHud.cpp b/releases/3.1/source/mod/AvHHud.cpp index 7e6b31e..97aee17 100644 --- a/releases/3.1/source/mod/AvHHud.cpp +++ b/releases/3.1/source/mod/AvHHud.cpp @@ -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); diff --git a/releases/3.1/user.scr b/releases/3.1/user.scr index 2073f0a..3990972 100644 --- a/releases/3.1/user.scr +++ b/releases/3.1/user.scr @@ -93,9 +93,9 @@ DESCRIPTION INFO_OPTIONS "cl_gammaramp" { - "Disable gamma ramp" + "Enable gamma ramp" { BOOL } - { "0" } + { "1" } } "hud_fastswitch"