From: havoc Date: Wed, 19 Sep 2007 07:56:26 +0000 (+0000) Subject: fix a typo in r_bloom_colorexponent which allowed it to get out of X-Git-Tag: xonotic-v0.1.0preview~2909 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f5b1ac271d13d731d68ca7084e84fda3599411ab;p=xonotic%2Fdarkplaces.git fix a typo in r_bloom_colorexponent which allowed it to get out of bounds git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7566 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/menu.c b/menu.c index cbe1b0b6..3950381f 100644 --- a/menu.c +++ b/menu.c @@ -1992,7 +1992,7 @@ static void M_Menu_Options_Graphics_AdjustSliders (int dir) else if (options_graphics_cursor == optnum++) Cvar_SetValueQuick (&r_hdr_glowintensity, bound(0, r_hdr_glowintensity.value + dir * 0.25, 4)); else if (options_graphics_cursor == optnum++) Cvar_SetValueQuick (&r_bloom_colorscale, bound(0.0625, r_bloom_colorscale.value + dir * 0.0625, 1)); else if (options_graphics_cursor == optnum++) Cvar_SetValueQuick (&r_bloom_colorsubtract, bound(0, r_bloom_colorsubtract.value + dir * 0.0625, 1-0.0625)); - else if (options_graphics_cursor == optnum++) Cvar_SetValueQuick (&r_bloom_colorexponent, bound(1, r_bloom_colorexponent.value *= (dir > 0 ? 2 : 0.5), 8)); + else if (options_graphics_cursor == optnum++) Cvar_SetValueQuick (&r_bloom_colorexponent, bound(1, r_bloom_colorexponent.value * (dir > 0 ? 2.0 : 0.5), 8)); else if (options_graphics_cursor == optnum++) Cvar_SetValueQuick (&r_bloom_brighten, bound(1, r_bloom_brighten.value + dir * 0.0625, 4)); else if (options_graphics_cursor == optnum++) Cvar_SetValueQuick (&r_bloom_blur, bound(1, r_bloom_blur.value + dir * 1, 16)); else if (options_graphics_cursor == optnum++) Cvar_SetValueQuick (&r_bloom_resolution, bound(64, r_bloom_resolution.value + dir * 64, 2048));