Tell a client about the objects Server only
| 2445 | // Tell a client about the objects |
| 2446 | // Server only |
| 2447 | void 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 |
no test coverage detected