Skip to content

Commit

Permalink
make a snd_restart when changing OpenAL setting (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bishop-333 authored Mar 15, 2024
1 parent 6acc658 commit 750e685
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/q3_ui/ui_sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ static void UI_SoundOptionsMenu_Event( void* ptr, int event ) {
trap_Cmd_ExecuteText( EXEC_NOW, "s_useopenal 0\n" );
}
soundOptionsInfo.openal.curvalue = (int)trap_Cvar_VariableValue( "s_useopenal" );
UI_ForceMenuOff();
trap_Cmd_ExecuteText( EXEC_APPEND, "snd_restart\n" );
break;

case ID_BACK:
Expand Down

0 comments on commit 750e685

Please sign in to comment.