From 0cf1ed544c91a01b9c2098cd3e11a49c8f0c1ddb Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 24 Jul 2012 16:34:20 +0300 Subject: [PATCH] darkrose should work at a nuclear power plant. It'd take years to figure out what caused the accident. --- src/mapnode.cpp | 4 +++- src/server.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mapnode.cpp b/src/mapnode.cpp index c616e011..5dab9375 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 0e498641..b3cbea6a 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); -- 2.30.2