| 953 | // |
| 954 | |
| 955 | static bool NodesOnSameNetwork() |
| 956 | { |
| 957 | int net1; |
| 958 | |
| 959 | net1 = PrivateNetOf(sendaddress[1].sin_addr); |
| 960 | // Printf("net1 = %08x\n", net1); |
| 961 | if (net1 == 0) |
| 962 | { |
| 963 | return false; |
| 964 | } |
| 965 | for (int i = 2; i < doomcom.numnodes; ++i) |
| 966 | { |
| 967 | int net = PrivateNetOf(sendaddress[i].sin_addr); |
| 968 | // Printf("Net[%d] = %08x\n", i, net); |
| 969 | if (net != net1) |
| 970 | { |
| 971 | return false; |
| 972 | } |
| 973 | } |
| 974 | return true; |
| 975 | } |
| 976 | |
| 977 | // |
| 978 | // I_InitNetwork |
no test coverage detected