2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

HLTV: Rename GROUP_UNKNOWN to GROUP_MULTICAST

This commit is contained in:
s1lent 2017-12-15 01:35:42 +07:00
parent 690296605f
commit 6994b32f25
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
4 changed files with 12 additions and 12 deletions

View File

@ -1063,7 +1063,7 @@ void Proxy::CMD_ClientCmd(char *cmdLine)
switch (group)
{
case 1: // spectators
group = GROUP_CLIENT | GROUP_DEMO | GROUP_UNKNOWN;
group = GROUP_CLIENT | GROUP_DEMO | GROUP_MULTICAST;
break;
case 2: // proxies
group = GROUP_PROXY;
@ -1462,7 +1462,7 @@ void Proxy::BroadcastRetryMessage()
msg.WriteByte(svc_centerprint);
msg.WriteString("Retrying HLTV connection ...");
Broadcast(msg.GetData(), msg.CurrentSize(), GROUP_CLIENT | GROUP_PROXY | GROUP_UNKNOWN, false);
Broadcast(msg.GetData(), msg.CurrentSize(), GROUP_CLIENT | GROUP_PROXY | GROUP_MULTICAST, false);
}
void Proxy::StopBroadcast(const char *message)

View File

@ -294,7 +294,7 @@ void ProxyClient::ParseVoiceData(NetPacket *packet)
voiceMsg.WriteShort(nDataLength);
voiceMsg.WriteBuf(packet->data.CurrentByte(), nDataLength);
m_Proxy->Broadcast(voiceMsg.GetData(), voiceMsg.CurrentSize(), GROUP_PROXY | GROUP_DEMO | GROUP_UNKNOWN | GROUP_VOICE, false);
m_Proxy->Broadcast(voiceMsg.GetData(), voiceMsg.CurrentSize(), GROUP_PROXY | GROUP_DEMO | GROUP_MULTICAST | GROUP_VOICE, false);
packet->data.SkipBytes(nDataLength);
}

View File

@ -131,7 +131,7 @@ void Status::SendStatusUpdate()
cmd.WriteToStream(&buffer);
// group spectators
m_Proxy->Broadcast(buffer.GetData(), buffer.CurrentSize(), GROUP_CLIENT | GROUP_DEMO | GROUP_UNKNOWN, false);
m_Proxy->Broadcast(buffer.GetData(), buffer.CurrentSize(), GROUP_CLIENT | GROUP_DEMO | GROUP_MULTICAST, false);
buffer.FastClear();
}

View File

@ -39,16 +39,16 @@ class BitBuffer;
class NetAddress;
class IObjectContainer;
#define MAX_PROXY_CLIENTS 255
#define MAX_PROXY_CLIENTS 255
#define GROUP_CLIENT 0x00001 // Broadcast to client
#define GROUP_PROXY 0x00002 // Broadcast to proxy
#define GROUP_DEMO 0x00004 // Broadcast to demo file
#define GROUP_UNKNOWN 0x00008 // Broadcast to UNKNOWN: unused
#define GROUP_VOICE 0x00010 // Broadcast to voice enabled clients
#define GROUP_CHAT 0x00020 // Broadcast to chat enabled clients
#define GROUP_CLIENT 0x00001 // Broadcast to client
#define GROUP_PROXY 0x00002 // Broadcast to proxy
#define GROUP_DEMO 0x00004 // Broadcast to demo file
#define GROUP_MULTICAST 0x00008 // Broadcast to multicast (obsolete)
#define GROUP_VOICE 0x00010 // Broadcast to voice enabled clients
#define GROUP_CHAT 0x00020 // Broadcast to chat enabled clients
#define GROUP_CLIENT_ALL GROUP_CLIENT | GROUP_PROXY | GROUP_DEMO | GROUP_UNKNOWN
#define GROUP_CLIENT_ALL GROUP_CLIENT | GROUP_PROXY | GROUP_DEMO | GROUP_MULTICAST
enum ChatMode_e : int
{