removed CF_CHATTER, as it's useless
This commit is contained in:
parent
de1e9b68e2
commit
f1a3ae1f6f
2 changed files with 1 additions and 10 deletions
|
|
@ -970,17 +970,9 @@ void Bot::SwitchChatterIcon (bool show)
|
|||
{
|
||||
Client &client = g_clients[i];
|
||||
|
||||
if ((show && !(client.flags & CF_CHATTER)) || (!show && (client.flags & CF_CHATTER)))
|
||||
continue;
|
||||
|
||||
if (!(client.flags & CF_USED) || (client.ent->v.flags & FL_FAKECLIENT) || client.team != m_team)
|
||||
continue;
|
||||
|
||||
if (show)
|
||||
client.flags |= CF_CHATTER;
|
||||
else
|
||||
client.flags &= ~CF_CHATTER;
|
||||
|
||||
MESSAGE_BEGIN (MSG_ONE, engine.FindMessageId (NETMSG_BOTVOICE), NULL, g_clients[i].ent); // begin message
|
||||
WRITE_BYTE (show); // switch on/off
|
||||
WRITE_BYTE (GetIndex ());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue