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

Function MultiSendRequestForObjects

Descent3/multi_client.cpp:276–288  ·  view source on GitHub ↗

Ask the server to tell me about the objects

Source from the content-addressed store, hash-verified

274
275// Ask the server to tell me about the objects
276void MultiSendRequestForObjects() {
277 int size;
278 uint8_t data[MAX_GAME_DATA_SIZE];
279 int count = 0;
280
281 mprintf(0, "Sending request for objects\n");
282
283 size = START_DATA(MP_REQUEST_OBJECTS, data, &count);
284 MultiAddByte(Player_num, data, &count);
285 END_DATA(count, data, size);
286
287 nw_SendReliable(NetPlayers[Player_num].reliable_socket, data, count);
288}
289
290#define SERVER_DISCONNECT_TIME 8.0
291

Callers 1

MultiDoClientFrameFunction · 0.85

Calls 4

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

Tested by

no test coverage detected