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

Function MultiDoRequestObjects

Descent3/multi.cpp:2447–2461  ·  view source on GitHub ↗

Tell a client about the objects Server only

Source from the content-addressed store, hash-verified

2445// Tell a client about the objects
2446// Server only
2447void MultiDoRequestObjects(uint8_t *data) {
2448 int count = 0;
2449
2450 // Skip header stuff
2451 SKIP_HEADER(data, &count);
2452
2453 uint8_t slot = MultiGetByte(data, &count);
2454 if (!(NetPlayers[slot].flags & NPF_CONNECTED)) {
2455 mprintf(1, "ERROR! We got a request object packet from a disconnected player!\n");
2456 Int3(); // Get Jason
2457 return;
2458 }
2459
2460 NetPlayers[slot].sequence = NETSEQ_REQUEST_OBJECTS;
2461}
2462
2463// Tell a client about the objects
2464// Server only

Callers 1

MultiProcessDataFunction · 0.85

Calls 2

SKIP_HEADERFunction · 0.85
MultiGetByteFunction · 0.85

Tested by

no test coverage detected