mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Massively improve the speed of rcon commands sending.
This commit is contained in:
parent
3805ffba86
commit
d09304fbc5
|
@ -1342,8 +1342,8 @@ void CServer::SendRconCmdRem(const IConsole::CCommandInfo *pCommandInfo, int Cli
|
||||||
|
|
||||||
void CServer::UpdateClientRconCommands()
|
void CServer::UpdateClientRconCommands()
|
||||||
{
|
{
|
||||||
int ClientId = Tick() % MAX_CLIENTS;
|
for(int ClientId = 0; ClientId < MAX_CLIENTS; ClientId++)
|
||||||
|
{
|
||||||
if(m_aClients[ClientId].m_State != CClient::STATE_EMPTY && m_aClients[ClientId].m_Authed)
|
if(m_aClients[ClientId].m_State != CClient::STATE_EMPTY && m_aClients[ClientId].m_Authed)
|
||||||
{
|
{
|
||||||
int ConsoleAccessLevel = m_aClients[ClientId].m_Authed == AUTHED_ADMIN ? IConsole::ACCESS_LEVEL_ADMIN : m_aClients[ClientId].m_Authed == AUTHED_MOD ? IConsole::ACCESS_LEVEL_MOD : IConsole::ACCESS_LEVEL_HELPER;
|
int ConsoleAccessLevel = m_aClients[ClientId].m_Authed == AUTHED_ADMIN ? IConsole::ACCESS_LEVEL_ADMIN : m_aClients[ClientId].m_Authed == AUTHED_MOD ? IConsole::ACCESS_LEVEL_MOD : IConsole::ACCESS_LEVEL_HELPER;
|
||||||
|
@ -1359,6 +1359,7 @@ void CServer::UpdateClientRconCommands()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static inline int MsgFromSixup(int Msg, bool System)
|
static inline int MsgFromSixup(int Msg, bool System)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue