| 728 | |
| 729 | |
| 730 | void ServerLink::sendCaps(PlayerId _id, bool downloads, bool sounds) { |
| 731 | if (state != Okay) { |
| 732 | return; |
| 733 | } |
| 734 | char msg[3] = {0}; |
| 735 | void* buf = msg; |
| 736 | |
| 737 | buf = nboPackUInt8(buf, uint8_t(_id)); |
| 738 | buf = nboPackUInt8(buf, downloads ? 1 : 0); |
| 739 | buf = nboPackUInt8(buf, sounds ? 1 : 0); |
| 740 | |
| 741 | send(MsgCapBits, (uint16_t)((char*)buf - msg), msg); |
| 742 | } |
| 743 | |
| 744 | |
| 745 | void ServerLink::sendEnter(PlayerId _id, PlayerType type, NetworkUpdates updates, TeamColor team, |
no test coverage detected