| 1589 | } |
| 1590 | |
| 1591 | static 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 | |
| 1608 | bool CServer::CheckReservedSlotAuth(int ClientId, const char *pPassword) |
| 1609 | { |