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

Function cmd_pause

source/src/clientgame.cpp:1614–1624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612COMMANDF(vote, "i", (int *v) { vote(*v); });
1613
1614void cmd_pause(int* arg1)
1615{
1616 if(*arg1 != 0 && *arg1 != 1) return;
1617 if(servstate.mastermode != MM_MATCH && servstate.mastermode != MM_PRIVATE)
1618 {
1619 conoutf("You may only pause the game in mastermode private or match.");
1620 return;
1621 }
1622 defformatstring(m)("%d", *arg1);
1623 callvote(SA_PAUSE, m, "-1", "0");
1624}
1625COMMANDN(pause, cmd_pause, "i");
1626
1627void cleanplayervotes(playerent *p)

Callers

nothing calls this directly

Calls 2

callvoteFunction · 0.85
conoutfFunction · 0.70

Tested by

no test coverage detected