Tell a client about the players connected Server only
| 2409 | // Tell a client about the players connected |
| 2410 | // Server only |
| 2411 | void MultiDoRequestPlayers(uint8_t *data) { |
| 2412 | int count = 0; |
| 2413 | |
| 2414 | // Skip header stuff |
| 2415 | SKIP_HEADER(data, &count); |
| 2416 | |
| 2417 | uint8_t slot = MultiGetByte(data, &count); |
| 2418 | if (!(NetPlayers[slot].flags & NPF_CONNECTED)) { |
| 2419 | mprintf(1, "ERROR! We got a MY_INFO packet from a disconnected player!\n"); |
| 2420 | Int3(); // Get Jason |
| 2421 | return; |
| 2422 | } |
| 2423 | |
| 2424 | NetPlayers[slot].sequence = NETSEQ_REQUEST_PLAYERS; |
| 2425 | } |
| 2426 | |
| 2427 | // Tell a client about the buildings |
| 2428 | // Server only |
no test coverage detected