Sends this reliable packet to everyone except the server and the named slot
| 1825 | |
| 1826 | // Sends this reliable packet to everyone except the server and the named slot |
| 1827 | void MultiSendReliablyToAllExcept(int except, uint8_t *data, int size, int seq_threshold, bool urgent) { |
| 1828 | for (int i = 0; i < MAX_NET_PLAYERS; i++) { |
| 1829 | if (!(NetPlayers[i].flags & NPF_CONNECTED)) |
| 1830 | continue; |
| 1831 | |
| 1832 | // Don't send to these clowns |
| 1833 | if (i == except || i == Player_num) |
| 1834 | continue; |
| 1835 | |
| 1836 | if (NetPlayers[i].sequence >= seq_threshold && NetPlayers[i].sequence != NETSEQ_LEVEL_END) |
| 1837 | nw_SendReliable(NetPlayers[i].reliable_socket, data, size, urgent); |
| 1838 | } |
| 1839 | } |
| 1840 | |
| 1841 | // Sends this nonreliable packet to everyone except the server and the named slot |
| 1842 | void MultiSendToAllExcept(int except, uint8_t *data, int size, int seq_threshold) { |
no test coverage detected