MCPcopy Create free account
hub / github.com/ZDoom/Raze / SendSetup

Function SendSetup

source/core/d_net.cpp:1628–1651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1626}
1627
1628static 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

Callers 2

DoArbitrateFunction · 0.85
D_ArbitrateNetStartFunction · 0.85

Calls 1

HSendPacketFunction · 0.85

Tested by

no test coverage detected