MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / sendCaps

Method sendCaps

src/clientbase/ServerLink.cpp:730–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

728
729
730void 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
745void ServerLink::sendEnter(PlayerId _id, PlayerType type, NetworkUpdates updates, TeamColor team,

Callers 2

joinInternetGame2Function · 0.80
BZAdminClientMethod · 0.80

Calls 1

nboPackUInt8Function · 0.85

Tested by

no test coverage detected