From 162e23928f1285fdf72a9fa6a3e2f8e6048e45ac Mon Sep 17 00:00:00 2001 From: tankefugl Date: Mon, 26 Sep 2005 17:13:52 +0000 Subject: [PATCH] Reverted cl_gammaramp to be 0 = disabled, 1 = enabled. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@334 67975925-1194-0748-b3d5-c16f83f1a3a1 --- releases/3.1/source/mod/AvHClientVariables.h | 2 +- releases/3.1/source/mod/AvHHud.cpp | 4 ++-- releases/3.1/user.scr | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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"