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

Function MsgFromSixup

src/engine/server/server.cpp:1591–1606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1589}
1590
1591static inline int MsgFromSixup(int Msg, bool System)
1592{
1593 if(System)
1594 {
1595 if(Msg == NETMSG_INFO)
1596 ;
1597 else if(Msg >= 14 && Msg <= 15)
1598 Msg += 11;
1599 else if(Msg >= 18 && Msg <= 28)
1600 Msg = NETMSG_READY + Msg - 18;
1601 else if(Msg < OFFSET_UUID)
1602 return -1;
1603 }
1604
1605 return Msg;
1606}
1607
1608bool CServer::CheckReservedSlotAuth(int ClientId, const char *pPassword)
1609{

Callers 1

ProcessClientPacketMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected