Allow adjusting VoIP gain and mute during SP demo playback

This commit is contained in:
Zack Middleton 2013-06-04 23:04:49 -05:00
parent e89a1b9f8e
commit 2937ac7661

View file

@ -256,7 +256,7 @@ void CL_Voip_f( void )
reason = "Speex not initialized";
else if (!clc.voipEnabled)
reason = "Server doesn't support VoIP";
else if ( Cvar_VariableValue( "g_gametype" ) == GT_SINGLE_PLAYER || Cvar_VariableValue("ui_singlePlayerActive"))
else if (!clc.demoplaying && (Cvar_VariableValue( "g_gametype" ) == GT_SINGLE_PLAYER || Cvar_VariableValue("ui_singlePlayerActive")))
reason = "running in single-player mode";
if (reason != NULL) {