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

Function setpausemode

source/src/server.cpp:623–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623void setpausemode(int newmode)
624{
625 if (sg->sispaused != newmode) {
626 sg->sispaused = newmode;
627 }
628
629 loopv(clients) if (clients[i]->type != ST_EMPTY)
630 {
631 if (!valid_client(i)) return;
632 clients[i]->ispaused = newmode;
633 }
634
635 sendf(-1, 1, "ri2", SV_PAUSEMODE, newmode);
636}
637
638int findcnbyaddress(ENetAddress *address)
639{

Callers 1

performMethod · 0.85

Calls 3

valid_clientFunction · 0.85
sendfFunction · 0.85
loopvFunction · 0.70

Tested by

no test coverage detected