engine: client: register sound cvars even if audio was disabled
This commit is contained in:
parent
6153d7f168
commit
d807041aa5
1 changed files with 6 additions and 6 deletions
|
@ -1921,12 +1921,6 @@ S_Init
|
||||||
*/
|
*/
|
||||||
qboolean S_Init( void )
|
qboolean S_Init( void )
|
||||||
{
|
{
|
||||||
if( Sys_CheckParm( "-nosound" ))
|
|
||||||
{
|
|
||||||
Con_Printf( "Audio: Disabled\n" );
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
Cvar_RegisterVariable( &s_volume );
|
Cvar_RegisterVariable( &s_volume );
|
||||||
Cvar_RegisterVariable( &s_musicvolume );
|
Cvar_RegisterVariable( &s_musicvolume );
|
||||||
Cvar_RegisterVariable( &s_mixahead );
|
Cvar_RegisterVariable( &s_mixahead );
|
||||||
|
@ -1940,6 +1934,12 @@ qboolean S_Init( void )
|
||||||
Cvar_RegisterVariable( &s_samplecount );
|
Cvar_RegisterVariable( &s_samplecount );
|
||||||
Cvar_RegisterVariable( &s_warn_late_precache );
|
Cvar_RegisterVariable( &s_warn_late_precache );
|
||||||
|
|
||||||
|
if( Sys_CheckParm( "-nosound" ))
|
||||||
|
{
|
||||||
|
Con_Printf( "Audio: Disabled\n" );
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
Cmd_AddCommand( "play", S_Play_f, "playing a specified sound file" );
|
Cmd_AddCommand( "play", S_Play_f, "playing a specified sound file" );
|
||||||
Cmd_AddCommand( "play2", S_Play2_f, "playing a group of specified sound files" ); // nehahra stuff
|
Cmd_AddCommand( "play2", S_Play2_f, "playing a group of specified sound files" ); // nehahra stuff
|
||||||
Cmd_AddCommand( "playvol", S_PlayVol_f, "playing a specified sound file with specified volume" );
|
Cmd_AddCommand( "playvol", S_PlayVol_f, "playing a specified sound file with specified volume" );
|
||||||
|
|
Loading…
Add table
Reference in a new issue