MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / MultiSendDonePlayers

Function MultiSendDonePlayers

Descent3/multi_server.cpp:937–950  ·  view source on GitHub ↗

Tells the client that we're done sending players

Source from the content-addressed store, hash-verified

935
936// Tells the client that we're done sending players
937void MultiSendDonePlayers(int slot) {
938 int size;
939 uint8_t data[MAX_GAME_DATA_SIZE];
940 int count = 0;
941
942 mprintf(0, "Sending done players\n");
943
944 size = START_DATA(MP_DONE_PLAYERS, data, &count);
945 int num = MultiCountPlayers();
946 MultiAddByte(num, data, &count);
947 END_DATA(count, data, size);
948
949 nw_SendReliable(NetPlayers[slot].reliable_socket, data, count);
950}
951
952// Tells the client that we're done sending buildings
953void MultiSendDoneBuildings(int slot) {

Callers 1

MultiDoServerFrameFunction · 0.85

Calls 5

START_DATAFunction · 0.85
MultiCountPlayersFunction · 0.85
MultiAddByteFunction · 0.85
END_DATAFunction · 0.85
nw_SendReliableFunction · 0.85

Tested by

no test coverage detected