static bool disconnect_handler(Client *client, bool good)
{
+ (void) client;
+
if (good)
- client_disconnect(client, false, NULL);
+ client_disconnect(false, NULL);
return true;
}
static bool block_handler(Client *client, bool good)
{
- MapBlock *block = map_deserialize_block(client->fd);
-
- if (! block)
- return false;
-
- if (good)
- map_add_block(client->map, block);
- else
- map_free_block(block);
-
- return true;
+ return map_deserialize_block(client->fd, client->map, ! good);
}
CommandHandler command_handlers[CLIENT_COMMAND_COUNT] = {