mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-12 07:04:15 +00:00
Fix: Cvar_Get needs a string as default value, not an int..
This commit is contained in:
parent
8bfc61b564
commit
3d7013e12b
1 changed files with 2 additions and 2 deletions
|
@ -147,12 +147,12 @@ S_Init ( void )
|
||||||
Cmd_AddCommand( "ogg_shutdown", OGG_Shutdown );
|
Cmd_AddCommand( "ogg_shutdown", OGG_Shutdown );
|
||||||
|
|
||||||
#if ! USE_OPENAL
|
#if ! USE_OPENAL
|
||||||
cv = Cvar_Get( "s_openal", 0, CVAR_ARCHIVE);
|
cv = Cvar_Get( "s_openal", "0", CVAR_ARCHIVE);
|
||||||
if( cv->value ) {
|
if( cv->value ) {
|
||||||
Com_Printf("Warning: Ignoring s_openal, as this binary has no OpenAL support!");
|
Com_Printf("Warning: Ignoring s_openal, as this binary has no OpenAL support!");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
cv = Cvar_Get( "s_openal", 1, CVAR_ARCHIVE);
|
cv = Cvar_Get( "s_openal", "1", CVAR_ARCHIVE);
|
||||||
if( cv->value && AL_Init() ) {
|
if( cv->value && AL_Init() ) {
|
||||||
sound_started = SS_OAL;
|
sound_started = SS_OAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue