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:
parent
690296605f
commit
6994b32f25
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user