| 579 | } |
| 580 | |
| 581 | int 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 | |
| 608 | bool CServer::StrHideIps(const char *pInput, char *pOutputWithIps, int OutputWithIpsSize, char *pOutputWithoutIps, int OutputWithoutIpsSize) |
| 609 | { |
no outgoing calls
no test coverage detected