| 548 | } |
| 549 | |
| 550 | int CNetServer::GetClientSlot(const NETADDR &Addr) |
| 551 | { |
| 552 | for(int i = 0; i < MaxClients(); i++) |
| 553 | { |
| 554 | if(m_aSlots[i].m_Connection.State() != CNetConnection::EState::OFFLINE && |
| 555 | m_aSlots[i].m_Connection.State() != CNetConnection::EState::ERROR && |
| 556 | net_addr_comp(m_aSlots[i].m_Connection.PeerAddress(), &Addr) == 0) |
| 557 | { |
| 558 | return i; |
| 559 | } |
| 560 | } |
| 561 | return -1; |
| 562 | } |
| 563 | |
| 564 | static bool IsDDNetControlMsg(const CNetPacketConstruct *pPacket) |
| 565 | { |
nothing calls this directly
no test coverage detected