Ask the server to tell me about the world
| 253 | |
| 254 | // Ask the server to tell me about the world |
| 255 | void MultiSendRequestForWorldStates() { |
| 256 | int size; |
| 257 | uint8_t data[MAX_GAME_DATA_SIZE]; |
| 258 | int count = 0; |
| 259 | |
| 260 | mprintf(0, "Sending request for world states\n"); |
| 261 | |
| 262 | size = START_DATA(MP_REQUEST_WORLD_STATES, data, &count); |
| 263 | MultiAddByte(Player_num, data, &count); |
| 264 | // Send the digest (checksum) for this level + our salt + the ships |
| 265 | // Do level checksum |
| 266 | for (int i = 0; i < 16; i++) { |
| 267 | MultiAddByte(NetPlayers[Player_num].digest[i], data, &count); |
| 268 | } |
| 269 | |
| 270 | END_DATA(count, data, size); |
| 271 | |
| 272 | nw_SendReliable(NetPlayers[Player_num].reliable_socket, data, count); |
| 273 | } |
| 274 | |
| 275 | // Ask the server to tell me about the objects |
| 276 | void MultiSendRequestForObjects() { |
no test coverage detected