From f1a3ae1f6f9245686ee0f04efa90fa9809702e24 Mon Sep 17 00:00:00 2001 From: jeefo Date: Sun, 17 Apr 2016 19:15:41 +0300 Subject: [PATCH] removed CF_CHATTER, as it's useless --- include/core.h | 3 +-- source/basecode.cpp | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/include/core.h b/include/core.h index c098269..34dd0a8 100644 --- a/include/core.h +++ b/include/core.h @@ -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 diff --git a/source/basecode.cpp b/source/basecode.cpp index c4d0719..239125f 100644 --- a/source/basecode.cpp +++ b/source/basecode.cpp @@ -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 ());