diff --git a/engine/client/client.h b/engine/client/client.h index ab6df205..f1e9212c 100644 --- a/engine/client/client.h +++ b/engine/client/client.h @@ -890,7 +890,7 @@ void CL_ParseFileTransferFailed( sizebuf_t *msg ); void CL_ParseHLTV( sizebuf_t *msg ); void CL_ParseDirector( sizebuf_t *msg ); void CL_ParseResLocation( sizebuf_t *msg ); -void CL_ParseCvarValue( sizebuf_t *msg, const qboolean ext ); +void CL_ParseCvarValue( sizebuf_t *msg, const qboolean ext, const connprotocol_t proto ); void CL_ParseServerMessage( sizebuf_t *msg ); void CL_ParseTempEntity( sizebuf_t *msg ); qboolean CL_DispatchUserMessage( const char *pszName, int iSize, void *pbuf ); diff --git a/engine/client/s_main.c b/engine/client/s_main.c index a95f016b..ce42b5e9 100644 --- a/engine/client/s_main.c +++ b/engine/client/s_main.c @@ -43,7 +43,7 @@ CVAR_DEFINE_AUTO( s_lerping, "0", FCVAR_ARCHIVE|FCVAR_FILTERABLE, "apply interpo static CVAR_DEFINE( s_ambient_level, "ambient_level", "0.3", FCVAR_ARCHIVE|FCVAR_FILTERABLE, "volume of environment noises (water and wind)" ); static CVAR_DEFINE( s_ambient_fade, "ambient_fade", "1000", FCVAR_ARCHIVE|FCVAR_FILTERABLE, "rate of volume fading when client is moving" ); static CVAR_DEFINE_AUTO( s_combine_sounds, "0", FCVAR_ARCHIVE|FCVAR_FILTERABLE, "combine channels with same sounds" ); -static CVAR_DEFINE_AUTO( snd_mute_losefocus, "1", FCVAR_ARCHIVE|FCVAR_FILTERABLE, "silence the audio when game window loses focus" ); +CVAR_DEFINE_AUTO( snd_mute_losefocus, "1", FCVAR_ARCHIVE|FCVAR_FILTERABLE, "silence the audio when game window loses focus" ); CVAR_DEFINE_AUTO( s_test, "0", 0, "engine developer cvar for quick testing new features" ); CVAR_DEFINE_AUTO( s_samplecount, "0", FCVAR_ARCHIVE|FCVAR_FILTERABLE, "sample count (0 for default value)" ); CVAR_DEFINE_AUTO( s_warn_late_precache, "0", FCVAR_ARCHIVE|FCVAR_FILTERABLE, "warn about late precached sounds on client-side" ); diff --git a/engine/client/sound.h b/engine/client/sound.h index cff098a9..43b4d5d2 100644 --- a/engine/client/sound.h +++ b/engine/client/sound.h @@ -194,6 +194,7 @@ extern convar_t s_lerping; extern convar_t s_test; // cvar to test new effects extern convar_t s_samplecount; extern convar_t s_warn_late_precache; +extern convar_t snd_mute_losefocus; void S_InitScaletable( void ); wavdata_t *S_LoadSound( sfx_t *sfx );