Fix ogg_shuffle display in menu.

In issue #296 it was pointed out that the menu shows ogg_shuffle
always as disabled, even if it's set to 1. This was an oversight,
the menu code was still checking the ogg_squence cvar removed in
the big OGG/Vorbis refactoring. Update it to match reality.
This commit is contained in:
Yamagi Burmeister 2018-10-22 20:25:16 +02:00
parent 80ef326927
commit 861cf25ddf

View file

@ -1118,19 +1118,6 @@ ControlsSetMenuItemValues(void)
s_options_oggshuffle_box.curvalue = (Cvar_VariableValue("ogg_shuffle") != 0);
s_options_oggvolume_slider.curvalue = Cvar_VariableValue("ogg_volume") * 10;
s_options_oggenable_box.curvalue = (Cvar_VariableValue("ogg_enable") != 0);
cvar_t *ogg;
ogg = Cvar_Get("ogg_sequence", "loop", CVAR_ARCHIVE);
if (!strcmp(ogg->string, "random"))
{
s_options_oggshuffle_box.curvalue = 1;
}
else
{
s_options_oggshuffle_box.curvalue = 0;
}
s_options_quality_list.curvalue = (Cvar_VariableValue("s_loadas8bit") == 0);
s_options_sensitivity_slider.curvalue = sensitivity->value * 2;
s_options_alwaysrun_box.curvalue = (cl_run->value != 0);