From: havoc Date: Wed, 21 May 2014 22:23:20 +0000 (+0000) Subject: don't miscount the bgmvolume entry in the menu when CONFIG_CD is not X-Git-Tag: xonotic-v0.8.1~29^2~83 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e1ead1c3c1680a1e49298ddd3cac36f9bdf23480;p=xonotic%2Fdarkplaces.git don't miscount the bgmvolume entry in the menu when CONFIG_CD is not defined git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12077 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/menu.c b/menu.c index 42fe27bb..9894709d 100644 --- a/menu.c +++ b/menu.c @@ -1624,7 +1624,9 @@ static void M_Menu_Options_AdjustSliders (int dir) else if (options_cursor == optnum++) Cvar_SetValueQuick(&v_contrast, bound(1, v_contrast.value + dir * 0.0625, 4)); else if (options_cursor == optnum++) Cvar_SetValueQuick(&v_gamma, bound(0.5, v_gamma.value + dir * 0.0625, 3)); else if (options_cursor == optnum++) Cvar_SetValueQuick(&volume, bound(0, volume.value + dir * 0.0625, 1)); +#ifdef CONFIG_CD else if (options_cursor == optnum++) Cvar_SetValueQuick(&bgmvolume, bound(0, bgmvolume.value + dir * 0.0625, 1)); +#endif } static int optnum;