darkrose should work at a nuclear power plant.
authorPerttu Ahola <celeron55@gmail.com>
Tue, 24 Jul 2012 13:34:20 +0000 (16:34 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 24 Jul 2012 13:36:50 +0000 (16:36 +0300)
It'd take years to figure out what caused the accident.

src/mapnode.cpp
src/server.cpp

index c616e011755a2adaa4b26d603cbedae38f76d70d..5dab93754a1e02d81d9a8722ae283502851f489b 100644 (file)
@@ -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)
 {
index 0e4986411359895d721bb1af442279cc1d94af4b..b3cbea6a447ed76c2111ea0a3b923d29365bbccd 100644 (file)
@@ -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);