| 1626 | } |
| 1627 | |
| 1628 | static void SendSetup (uint32_t playersdetected[MAXNETNODES], uint8_t gotsetup[MAXNETNODES], int len) |
| 1629 | { |
| 1630 | if (myconnectindex != Net_Arbitrator) |
| 1631 | { |
| 1632 | if (playersdetected[1] & (1 << myconnectindex)) |
| 1633 | { |
| 1634 | HSendPacket (1, 10); |
| 1635 | } |
| 1636 | else |
| 1637 | { |
| 1638 | HSendPacket (1, len); |
| 1639 | } |
| 1640 | } |
| 1641 | else |
| 1642 | { |
| 1643 | for (int i = 1; i < doomcom.numnodes; ++i) |
| 1644 | { |
| 1645 | if (!gotsetup[i] || netbuffer[0] == NCMD_SETUP+3) |
| 1646 | { |
| 1647 | HSendPacket (i, len); |
| 1648 | } |
| 1649 | } |
| 1650 | } |
| 1651 | } |
| 1652 | |
| 1653 | // |
| 1654 | // D_CheckNetGame |
no test coverage detected