MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / MultiCountPlayers

Function MultiCountPlayers

Descent3/multi.cpp:6503–6513  ·  view source on GitHub ↗

Returns the number of players in a game

Source from the content-addressed store, hash-verified

6501
6502// Returns the number of players in a game
6503int MultiCountPlayers() {
6504 int i;
6505 int count = 0;
6506
6507 for (i = 0; i < MAX_NET_PLAYERS; i++) {
6508 if (NetPlayers[i].flags & NPF_CONNECTED)
6509 count++;
6510 }
6511
6512 return count;
6513}
6514
6515// Sends a full packet out the the server
6516// Resets the send_size variable

Callers 3

MultiDoDonePlayersFunction · 0.85
MultiDoAskToJoinFunction · 0.85
MultiSendDonePlayersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected