| 1504 | } |
| 1505 | |
| 1506 | static CServerCapabilities GetServerCapabilities(int Version, int Flags, bool Sixup) |
| 1507 | { |
| 1508 | CServerCapabilities Result; |
| 1509 | bool DDNet = false; |
| 1510 | if(Version >= 1) |
| 1511 | { |
| 1512 | DDNet = Flags & SERVERCAPFLAG_DDNET; |
| 1513 | } |
| 1514 | Result.m_ChatTimeoutCode = DDNet; |
| 1515 | Result.m_AnyPlayerFlag = !Sixup; |
| 1516 | Result.m_PingEx = false; |
| 1517 | Result.m_AllowDummy = true; |
| 1518 | Result.m_SyncWeaponInput = false; |
| 1519 | if(Version >= 1) |
| 1520 | { |
| 1521 | Result.m_ChatTimeoutCode = Flags & SERVERCAPFLAG_CHATTIMEOUTCODE; |
| 1522 | } |
| 1523 | if(Version >= 2) |
| 1524 | { |
| 1525 | Result.m_AnyPlayerFlag = Flags & SERVERCAPFLAG_ANYPLAYERFLAG; |
| 1526 | } |
| 1527 | if(Version >= 3) |
| 1528 | { |
| 1529 | Result.m_PingEx = Flags & SERVERCAPFLAG_PINGEX; |
| 1530 | } |
| 1531 | if(Version >= 4) |
| 1532 | { |
| 1533 | Result.m_AllowDummy = Flags & SERVERCAPFLAG_ALLOWDUMMY; |
| 1534 | } |
| 1535 | if(Version >= 5) |
| 1536 | { |
| 1537 | Result.m_SyncWeaponInput = Flags & SERVERCAPFLAG_SYNCWEAPONINPUT; |
| 1538 | } |
| 1539 | return Result; |
| 1540 | } |
| 1541 | |
| 1542 | void CClient::ProcessServerPacket(CNetChunk *pPacket, int Conn, bool Dummy) |
| 1543 | { |