mirror of
https://github.com/rehlds/rehlds.git
synced 2024-12-28 15:45:46 +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)
|
switch (group)
|
||||||
{
|
{
|
||||||
case 1: // spectators
|
case 1: // spectators
|
||||||
group = GROUP_CLIENT | GROUP_DEMO | GROUP_UNKNOWN;
|
group = GROUP_CLIENT | GROUP_DEMO | GROUP_MULTICAST;
|
||||||
break;
|
break;
|
||||||
case 2: // proxies
|
case 2: // proxies
|
||||||
group = GROUP_PROXY;
|
group = GROUP_PROXY;
|
||||||
@ -1462,7 +1462,7 @@ void Proxy::BroadcastRetryMessage()
|
|||||||
msg.WriteByte(svc_centerprint);
|
msg.WriteByte(svc_centerprint);
|
||||||
msg.WriteString("Retrying HLTV connection ...");
|
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)
|
void Proxy::StopBroadcast(const char *message)
|
||||||
|
@ -294,7 +294,7 @@ void ProxyClient::ParseVoiceData(NetPacket *packet)
|
|||||||
voiceMsg.WriteShort(nDataLength);
|
voiceMsg.WriteShort(nDataLength);
|
||||||
voiceMsg.WriteBuf(packet->data.CurrentByte(), 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);
|
packet->data.SkipBytes(nDataLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ void Status::SendStatusUpdate()
|
|||||||
cmd.WriteToStream(&buffer);
|
cmd.WriteToStream(&buffer);
|
||||||
|
|
||||||
// group spectators
|
// 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();
|
buffer.FastClear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,16 +39,16 @@ class BitBuffer;
|
|||||||
class NetAddress;
|
class NetAddress;
|
||||||
class IObjectContainer;
|
class IObjectContainer;
|
||||||
|
|
||||||
#define MAX_PROXY_CLIENTS 255
|
#define MAX_PROXY_CLIENTS 255
|
||||||
|
|
||||||
#define GROUP_CLIENT 0x00001 // Broadcast to client
|
#define GROUP_CLIENT 0x00001 // Broadcast to client
|
||||||
#define GROUP_PROXY 0x00002 // Broadcast to proxy
|
#define GROUP_PROXY 0x00002 // Broadcast to proxy
|
||||||
#define GROUP_DEMO 0x00004 // Broadcast to demo file
|
#define GROUP_DEMO 0x00004 // Broadcast to demo file
|
||||||
#define GROUP_UNKNOWN 0x00008 // Broadcast to UNKNOWN: unused
|
#define GROUP_MULTICAST 0x00008 // Broadcast to multicast (obsolete)
|
||||||
#define GROUP_VOICE 0x00010 // Broadcast to voice enabled clients
|
#define GROUP_VOICE 0x00010 // Broadcast to voice enabled clients
|
||||||
#define GROUP_CHAT 0x00020 // Broadcast to chat 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
|
enum ChatMode_e : int
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user