Fix: Cvar_Get needs a string as default value, not an int..

This commit is contained in:
Daniel Gibson 2012-04-22 20:28:41 +00:00
parent 8bfc61b564
commit 3d7013e12b

View file

@ -147,12 +147,12 @@ S_Init ( void )
Cmd_AddCommand( "ogg_shutdown", OGG_Shutdown );
#if ! USE_OPENAL
cv = Cvar_Get( "s_openal", 0, CVAR_ARCHIVE);
cv = Cvar_Get( "s_openal", "0", CVAR_ARCHIVE);
if( cv->value ) {
Com_Printf("Warning: Ignoring s_openal, as this binary has no OpenAL support!");
}
#else
cv = Cvar_Get( "s_openal", 1, CVAR_ARCHIVE);
cv = Cvar_Get( "s_openal", "1", CVAR_ARCHIVE);
if( cv->value && AL_Init() ) {
sound_started = SS_OAL;
}