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

Method SendCapabilities

src/engine/server/server.cpp:1323–1329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1321}
1322
1323void CServer::SendCapabilities(int ClientId)
1324{
1325 CMsgPacker Msg(NETMSG_CAPABILITIES, true);
1326 Msg.AddInt(SERVERCAP_CURVERSION); // version
1327 Msg.AddInt(SERVERCAPFLAG_DDNET | SERVERCAPFLAG_CHATTIMEOUTCODE | SERVERCAPFLAG_ANYPLAYERFLAG | SERVERCAPFLAG_PINGEX | SERVERCAPFLAG_ALLOWDUMMY | SERVERCAPFLAG_SYNCWEAPONINPUT); // flags
1328 SendMsg(&Msg, MSGFLAG_VITAL, ClientId);
1329}
1330
1331void CServer::SendMap(int ClientId)
1332{

Callers 1

Calls 1

AddIntMethod · 0.80

Tested by

no test coverage detected