MCPcopy Create free account
hub / github.com/ddnet/ddnet / UpdateClientRconCommands

Method UpdateClientRconCommands

src/engine/server/server.cpp:1483–1502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1481}
1482
1483void CServer::UpdateClientRconCommands(int ClientId)
1484{
1485 CClient &Client = m_aClients[ClientId];
1486 if(Client.m_State != CClient::STATE_INGAME ||
1487 !IsRconAuthed(ClientId) ||
1488 Client.m_pRconCmdToSend == nullptr)
1489 {
1490 return;
1491 }
1492
1493 for(int i = 0; i < MAX_RCONCMD_SEND && Client.m_pRconCmdToSend; ++i)
1494 {
1495 SendRconCmdAdd(Client.m_pRconCmdToSend, ClientId);
1496 Client.m_pRconCmdToSend = Console()->NextCommandInfo(Client.m_pRconCmdToSend, ClientId, CFGFLAG_SERVER);
1497 if(Client.m_pRconCmdToSend == nullptr)
1498 {
1499 SendRconCmdGroupEnd(ClientId);
1500 }
1501 }
1502}
1503
1504CServer::CMaplistEntry::CMaplistEntry(const char *pName)
1505{

Callers

nothing calls this directly

Calls 1

NextCommandInfoMethod · 0.80

Tested by

no test coverage detected