Tell a client about the buildings Server only
| 2427 | // Tell a client about the buildings |
| 2428 | // Server only |
| 2429 | void MultiDoRequestBuildings(uint8_t *data) { |
| 2430 | int count = 0; |
| 2431 | |
| 2432 | // Skip header stuff |
| 2433 | SKIP_HEADER(data, &count); |
| 2434 | |
| 2435 | uint8_t slot = MultiGetByte(data, &count); |
| 2436 | if (!(NetPlayers[slot].flags & NPF_CONNECTED)) { |
| 2437 | mprintf(1, "ERROR! We got a request buildings packet from a disconnected player!\n"); |
| 2438 | Int3(); // Get Jason |
| 2439 | return; |
| 2440 | } |
| 2441 | |
| 2442 | NetPlayers[slot].sequence = NETSEQ_REQUEST_BUILDINGS; |
| 2443 | } |
| 2444 | |
| 2445 | // Tell a client about the objects |
| 2446 | // Server only |
no test coverage detected