diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-06-19 14:30:22 +0000 |
---|---|---|
committer | PilzAdam <pilzadam@minetest.net> | 2013-06-19 15:47:00 +0000 |
commit | 53066024f6a91d5f83241b379b94d8557d43a646 (patch) | |
tree | c785c98f2cc0b45a2430e0e6a374676cd0a175c4 /src/nodedef.cpp | |
parent | e65ac4d626f69656c57c07e4df1a1113a014f34a (diff) | |
download | minetest-53066024f6a91d5f83241b379b94d8557d43a646.tar.gz minetest-53066024f6a91d5f83241b379b94d8557d43a646.tar.bz2 minetest-53066024f6a91d5f83241b379b94d8557d43a646.zip |
Add drowning
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index ba3e42e98..7d8ce70d3 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -211,6 +211,7 @@ void ContentFeatures::reset() liquid_alternative_source = ""; liquid_viscosity = 0; liquid_renewable = true; + drowning = true; light_source = 0; damage_per_second = 0; node_box = NodeBox(); @@ -279,6 +280,7 @@ void ContentFeatures::serialize(std::ostream &os, u16 protocol_version) writeU8(os, rightclickable); // Stuff below should be moved to correct place in a version that otherwise changes // the protocol version + writeU8(os, drowning); } void ContentFeatures::deSerialize(std::istream &is) @@ -343,6 +345,7 @@ void ContentFeatures::deSerialize(std::istream &is) try{ // Stuff below should be moved to correct place in a version that // otherwise changes the protocol version + drowning = readU8(is); }catch(SerializationError &e) {}; } |