From e1ead1c3c1680a1e49298ddd3cac36f9bdf23480 Mon Sep 17 00:00:00 2001 From: havoc Date: Wed, 21 May 2014 22:23:20 +0000 Subject: [PATCH] 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 --- menu.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2