mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-30 16:01:46 +00:00
Don't show VoIP meter in all the common scenarios.
This commit is contained in:
parent
51978317d8
commit
21d1cd380b
1 changed files with 13 additions and 4 deletions
|
@ -354,10 +354,19 @@ void SCR_DrawVoipMeter( void ) {
|
|||
int limit, i;
|
||||
|
||||
if (!cl_voipShowMeter->integer)
|
||||
return;
|
||||
|
||||
if (!cl_voipSend->integer)
|
||||
return;
|
||||
return; // player doesn't want to show meter at all.
|
||||
else if (!cl_voipSend->integer)
|
||||
return; // not recording at the moment.
|
||||
else if (cls.state != CA_ACTIVE)
|
||||
return; // not connected to a server.
|
||||
else if (!cl_connectedToVoipServer)
|
||||
return; // server doesn't support VoIP.
|
||||
else if ( Cvar_VariableValue( "g_gametype" ) == GT_SINGLE_PLAYER || Cvar_VariableValue("ui_singlePlayerActive"))
|
||||
return; // single player game.
|
||||
else if (clc.demoplaying)
|
||||
return ; // playing back a demo.
|
||||
else if (!voip->integer)
|
||||
return; // client has VoIP support disabled.
|
||||
|
||||
limit = (int) (clc.voipPower * 10.0f);
|
||||
if (limit > 10)
|
||||
|
|
Loading…
Reference in a new issue