Returns the number of players in a game
| 6501 | |
| 6502 | // Returns the number of players in a game |
| 6503 | int 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 |
no outgoing calls
no test coverage detected