Skip to content

Commit

Permalink
Don't show VoIP meter in all the common scenarios.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 29, 2008
1 parent 5197831 commit 21d1cd3
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions code/client/cl_scrn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 21d1cd3

Please sign in to comment.