mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-19 07:51:03 +00:00
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:
parent
80ef326927
commit
861cf25ddf
1 changed files with 0 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue