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
|
|
@ -122,8 +122,7 @@ enum ClientFlags
|
||||||
{
|
{
|
||||||
CF_USED = (1 << 0),
|
CF_USED = (1 << 0),
|
||||||
CF_ALIVE = (1 << 1),
|
CF_ALIVE = (1 << 1),
|
||||||
CF_ADMIN = (1 << 2),
|
CF_ADMIN = (1 << 2)
|
||||||
CF_CHATTER = (1 << 3)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// radio messages
|
// radio messages
|
||||||
|
|
|
||||||
|
|
@ -970,17 +970,9 @@ void Bot::SwitchChatterIcon (bool show)
|
||||||
{
|
{
|
||||||
Client &client = g_clients[i];
|
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)
|
if (!(client.flags & CF_USED) || (client.ent->v.flags & FL_FAKECLIENT) || client.team != m_team)
|
||||||
continue;
|
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
|
MESSAGE_BEGIN (MSG_ONE, engine.FindMessageId (NETMSG_BOTVOICE), NULL, g_clients[i].ent); // begin message
|
||||||
WRITE_BYTE (show); // switch on/off
|
WRITE_BYTE (show); // switch on/off
|
||||||
WRITE_BYTE (GetIndex ());
|
WRITE_BYTE (GetIndex ());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue