From: Perttu Ahola Date: Tue, 24 Jul 2012 13:34:20 +0000 (+0300) Subject: darkrose should work at a nuclear power plant. X-Git-Tag: 0.4.2-rc1~24 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0cf1ed544c91a01b9c2098cd3e11a49c8f0c1ddb;p=oweals%2Fminetest.git darkrose should work at a nuclear power plant. It'd take years to figure out what caused the accident. --- diff --git a/src/mapnode.cpp b/src/mapnode.cpp index c616e0117..5dab93754 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -234,8 +234,10 @@ u32 MapNode::serializedLength(u8 version) return 1; else if(version <= 9) return 2; - else + else if(version <= 23) return 3; + else + return 4; } void MapNode::serialize(u8 *dest, u8 version) { diff --git a/src/server.cpp b/src/server.cpp index 0e4986411..b3cbea6a4 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -4016,7 +4016,7 @@ void Server::SendBlocks(float dtime) RemoteClient *client = getClient(q.peer_id); - SendBlockNoLock(q.peer_id, block, 24);//client->serialization_version); + SendBlockNoLock(q.peer_id, block, client->serialization_version); client->SentBlock(q.pos);