diff options
author | proller <proller@github.com> | 2014-04-18 21:08:03 +0400 |
---|---|---|
committer | proller <proller@github.com> | 2014-04-18 21:56:48 +0400 |
commit | 0279f32db742f06d24a9d01c46f7d70c5e570eb2 (patch) | |
tree | 217f49380e9e363a5086468c14168c8efd9b3f26 /src/mapblock.cpp | |
parent | 674be38fc262aab78ed75141c70e5c02830ca80d (diff) | |
download | minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.tar.gz minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.tar.bz2 minetest-0279f32db742f06d24a9d01c46f7d70c5e570eb2.zip |
Remove liquid_finite and weather
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r-- | src/mapblock.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index eafb956d5..95e54fb33 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -43,10 +43,6 @@ with this program; if not, write to the Free Software Foundation, Inc., */ MapBlock::MapBlock(Map *parent, v3s16 pos, IGameDef *gamedef, bool dummy): - heat(0), - humidity(0), - heat_last_update(0), - humidity_last_update(0), m_parent(parent), m_pos(pos), m_gamedef(gamedef), @@ -647,8 +643,8 @@ void MapBlock::serializeNetworkSpecific(std::ostream &os, u16 net_proto_version) if(net_proto_version >= 21){ int version = 1; writeU8(os, version); - writeF1000(os, heat); - writeF1000(os, humidity); + writeF1000(os, 0); // deprecated heat + writeF1000(os, 0); // deprecated humidity } } @@ -764,8 +760,8 @@ void MapBlock::deSerializeNetworkSpecific(std::istream &is) //if(version != 1) // throw SerializationError("unsupported MapBlock version"); if(version >= 1) { - heat = readF1000(is); - humidity = readF1000(is); + readF1000(is); // deprecated heat + readF1000(is); // deprecated humidity } } catch(SerializationError &e) |