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.0~60 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3d6e4f852ba03343f3c4ae765a2ee8ae33209451;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 ::stable-branch::merge=e1ead1c3c1680a1e49298ddd3cac36f9bdf23480 --- 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;