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

Method Init

src/engine/server/server.cpp:581–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581int CServer::Init()
582{
583 for(auto &Client : m_aClients)
584 {
585 Client.m_State = CClient::STATE_EMPTY;
586 Client.m_aName[0] = 0;
587 Client.m_aClan[0] = 0;
588 Client.m_Country = -1;
589 Client.m_Snapshots.Init();
590 Client.m_Traffic = 0;
591 Client.m_TrafficSince = 0;
592 Client.m_ShowIps = false;
593 Client.m_DebugDummy = false;
594 Client.m_AuthKey = -1;
595 Client.m_Latency = 0;
596 Client.m_Sixup = false;
597 Client.m_RedirectDropTime = 0;
598 }
599
600 m_CurrentGameTick = MIN_TICK;
601
602 m_AnnouncementLastLine = -1;
603 std::fill(std::begin(m_aPrevStates), std::end(m_aPrevStates), 0);
604
605 return 0;
606}
607
608bool CServer::StrHideIps(const char *pInput, char *pOutputWithIps, int OutputWithIpsSize, char *pOutputWithoutIps, int OutputWithoutIpsSize)
609{

Callers 5

DoSnapshotMethod · 0.45
RunMethod · 0.45
ConchainInputFifoMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected