removed CF_CHATTER, as it's useless

This commit is contained in:
jeefo 2016-04-17 19:15:41 +03:00
commit f1a3ae1f6f
2 changed files with 1 additions and 10 deletions

View file

@ -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 ());