Fixed basecomm forwards firing with incorrect client parameter value (bug 5583, r=psychonic).
This commit is contained in:
parent
8dc7f78b0f
commit
e20e272ee1
@ -215,7 +215,7 @@ PerformMute(client, target, bool:silent=false)
|
|||||||
g_Muted[target] = true;
|
g_Muted[target] = true;
|
||||||
SetClientListeningFlags(target, VOICE_MUTED);
|
SetClientListeningFlags(target, VOICE_MUTED);
|
||||||
|
|
||||||
FireOnClientMute(client, true);
|
FireOnClientMute(target, true);
|
||||||
|
|
||||||
if (!silent)
|
if (!silent)
|
||||||
{
|
{
|
||||||
@ -239,7 +239,7 @@ PerformUnMute(client, target, bool:silent=false)
|
|||||||
SetClientListeningFlags(target, VOICE_NORMAL);
|
SetClientListeningFlags(target, VOICE_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
FireOnClientMute(client, false);
|
FireOnClientMute(target, false);
|
||||||
|
|
||||||
if (!silent)
|
if (!silent)
|
||||||
{
|
{
|
||||||
@ -250,7 +250,7 @@ PerformUnMute(client, target, bool:silent=false)
|
|||||||
PerformGag(client, target, bool:silent=false)
|
PerformGag(client, target, bool:silent=false)
|
||||||
{
|
{
|
||||||
g_Gagged[target] = true;
|
g_Gagged[target] = true;
|
||||||
FireOnClientGag(client, true);
|
FireOnClientGag(target, true);
|
||||||
|
|
||||||
if (!silent)
|
if (!silent)
|
||||||
{
|
{
|
||||||
@ -261,7 +261,7 @@ PerformGag(client, target, bool:silent=false)
|
|||||||
PerformUnGag(client, target, bool:silent=false)
|
PerformUnGag(client, target, bool:silent=false)
|
||||||
{
|
{
|
||||||
g_Gagged[target] = false;
|
g_Gagged[target] = false;
|
||||||
FireOnClientGag(client, false);
|
FireOnClientGag(target, false);
|
||||||
|
|
||||||
if (!silent)
|
if (!silent)
|
||||||
{
|
{
|
||||||
@ -274,14 +274,14 @@ PerformSilence(client, target)
|
|||||||
if (!g_Gagged[target])
|
if (!g_Gagged[target])
|
||||||
{
|
{
|
||||||
g_Gagged[target] = true;
|
g_Gagged[target] = true;
|
||||||
FireOnClientGag(client, true);
|
FireOnClientGag(target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_Muted[target])
|
if (!g_Muted[target])
|
||||||
{
|
{
|
||||||
g_Muted[target] = true;
|
g_Muted[target] = true;
|
||||||
SetClientListeningFlags(target, VOICE_MUTED);
|
SetClientListeningFlags(target, VOICE_MUTED);
|
||||||
FireOnClientMute(client, true);
|
FireOnClientMute(target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
LogAction(client, target, "\"%L\" silenced \"%L\"", client, target);
|
LogAction(client, target, "\"%L\" silenced \"%L\"", client, target);
|
||||||
@ -292,7 +292,7 @@ PerformUnSilence(client, target)
|
|||||||
if (g_Gagged[target])
|
if (g_Gagged[target])
|
||||||
{
|
{
|
||||||
g_Gagged[target] = false;
|
g_Gagged[target] = false;
|
||||||
FireOnClientGag(client, false);
|
FireOnClientGag(target, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (g_Muted[target])
|
if (g_Muted[target])
|
||||||
@ -311,7 +311,7 @@ PerformUnSilence(client, target)
|
|||||||
{
|
{
|
||||||
SetClientListeningFlags(target, VOICE_NORMAL);
|
SetClientListeningFlags(target, VOICE_NORMAL);
|
||||||
}
|
}
|
||||||
FireOnClientMute(client, false);
|
FireOnClientMute(target, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
LogAction(client, target, "\"%L\" unsilenced \"%L\"", client, target);
|
LogAction(client, target, "\"%L\" unsilenced \"%L\"", client, target);
|
||||||
|
Loading…
Reference in New Issue
Block a user