MCPcopy Create free account
hub / github.com/assaultcube/AC / sendservermode

Function sendservermode

source/src/server.cpp:577–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577int sendservermode(bool send = true)
578{
579 int sm = (sg->autoteam ? AT_ENABLED : AT_DISABLED) | ((sg->mastermode & MM_MASK) << 2) | (sg->matchteamsize << 4);
580 if(send) sendf(-1, 1, "ri2", SV_SERVERMODE, sm);
581 return sm;
582}
583
584void changematchteamsize(int newteamsize)
585{

Callers 5

performMethod · 0.85
performMethod · 0.85
changematchteamsizeFunction · 0.85
changemastermodeFunction · 0.85
welcomepacketFunction · 0.85

Calls 1

sendfFunction · 0.85

Tested by

no test coverage detected