| 1238 | |
| 1239 | |
| 1240 | void handleGetWorld(void* msg, uint16_t len) { |
| 1241 | int32_t bytesLeft; |
| 1242 | msg = nboUnpackInt32(msg, bytesLeft); |
| 1243 | const uint32_t worldPtr = |
| 1244 | worldDownLoader->processChunk(msg, len - 4, bytesLeft); |
| 1245 | if (worldPtr > 0) { |
| 1246 | // ask for more |
| 1247 | char message[MaxPacketLen]; |
| 1248 | nboPackUInt32(message, worldPtr); |
| 1249 | serverLink->send(MsgGetWorld, sizeof(uint32_t), message); |
| 1250 | } |
| 1251 | } |
| 1252 | |
| 1253 | |
| 1254 | void handleGameTime(void* msg) { |
no test coverage detected