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

@ -122,8 +122,7 @@ enum ClientFlags
{
CF_USED = (1 << 0),
CF_ALIVE = (1 << 1),
CF_ADMIN = (1 << 2),
CF_CHATTER = (1 << 3)
CF_ADMIN = (1 << 2)
};
// radio messages

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