diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-07-24 16:34:20 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-24 16:36:50 +0300 |
commit | 0cf1ed544c91a01b9c2098cd3e11a49c8f0c1ddb (patch) | |
tree | 018298ffb1bd65aacf4c946e9e52743228a77c2e | |
parent | 558e284e25b5be14b700951269b027ac82a7b3ca (diff) | |
download | minetest-0cf1ed544c91a01b9c2098cd3e11a49c8f0c1ddb.tar.gz minetest-0cf1ed544c91a01b9c2098cd3e11a49c8f0c1ddb.tar.bz2 minetest-0cf1ed544c91a01b9c2098cd3e11a49c8f0c1ddb.zip |
darkrose should work at a nuclear power plant.
It'd take years to figure out what caused the accident.
-rw-r--r-- | src/mapnode.cpp | 4 | ||||
-rw-r--r-- | src/server.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
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); |