mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Make s_useOpenAL be CVAR_LATCH
After changing s_useOpenAL the sound needs to be restarted (snd_restart) for it to take affect.
This commit is contained in:
parent
45f8512f8e
commit
f3f29e9670
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ void S_Init( void )
|
||||||
Cmd_AddCommand( "s_stop", S_StopAllSounds );
|
Cmd_AddCommand( "s_stop", S_StopAllSounds );
|
||||||
Cmd_AddCommand( "s_info", S_SoundInfo );
|
Cmd_AddCommand( "s_info", S_SoundInfo );
|
||||||
|
|
||||||
cv = Cvar_Get( "s_useOpenAL", "1", CVAR_ARCHIVE );
|
cv = Cvar_Get( "s_useOpenAL", "1", CVAR_ARCHIVE | CVAR_LATCH );
|
||||||
if( cv->integer ) {
|
if( cv->integer ) {
|
||||||
//OpenAL
|
//OpenAL
|
||||||
started = S_AL_Init( &si );
|
started = S_AL_Init( &si );
|
||||||
|
|
Loading…
Reference in a new issue