Leader2: 2 fixes
This commit is contained in:
parent
70785fbd38
commit
28726748c4
@ -421,7 +421,7 @@ public Action CheckLeaderVoice(Handle timer)
|
||||
{
|
||||
for(int i = 1; i <= MaxClients; i++)
|
||||
{
|
||||
if(g_bForceMute[i])
|
||||
if(IsClientInGame(i) && g_bForceMute[i])
|
||||
{
|
||||
BaseComm_SetClientMute(i, false);
|
||||
g_bForceMute[i] = false;
|
||||
@ -1111,7 +1111,10 @@ public void OnClientDisconnect(int client)
|
||||
voteCount[client] = 0;
|
||||
|
||||
if(g_bForceMute[client])
|
||||
{
|
||||
BaseComm_SetClientMute(client, false);
|
||||
g_bForceMute[client] = false;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user