| 429 | } |
| 430 | |
| 431 | void sendpacket(int n, int chan, ENetPacket *packet, int exclude, bool demopacket) |
| 432 | { |
| 433 | if(n<0) |
| 434 | { |
| 435 | recordpacket(chan, packet->data, (int)packet->dataLength); |
| 436 | loopv(clients) if(i!=exclude && (clients[i]->type!=ST_TCPIP || clients[i]->isauthed)) sendpacket(i, chan, packet, -1, demopacket); |
| 437 | return; |
| 438 | } |
| 439 | switch(clients[n]->type) |
| 440 | { |
| 441 | case ST_TCPIP: |
| 442 | { |
| 443 | enet_peer_send(clients[n]->peer, chan, packet); |
| 444 | break; |
| 445 | } |
| 446 | |
| 447 | case ST_LOCAL: |
| 448 | localservertoclient(chan, packet->data, (int)packet->dataLength, demopacket); |
| 449 | break; |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | static bool reliablemessages = false; |
| 454 |
no test coverage detected