aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-07-16 16:28:18 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-07-20 20:41:17 +0200
commit413f0d0353d49d7baed32540d73cbec99e35658a (patch)
treef24e82a82f5a9eb906ef3e07ac847edeeb26a2d1 /src/nodedef.cpp
parentcba90d4441bd2e81efb262e663e9c53c24322a54 (diff)
downloadminetest-413f0d0353d49d7baed32540d73cbec99e35658a.tar.gz
minetest-413f0d0353d49d7baed32540d73cbec99e35658a.tar.bz2
minetest-413f0d0353d49d7baed32540d73cbec99e35658a.zip
Add liquid_range to nodedef
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index b26415168..b1ce7bbc8 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -213,6 +213,7 @@ void ContentFeatures::reset()
liquid_alternative_source = "";
liquid_viscosity = 0;
liquid_renewable = true;
+ liquid_range = LIQUID_LEVEL_MAX+1;
drowning = true;
light_source = 0;
damage_per_second = 0;
@@ -284,6 +285,7 @@ void ContentFeatures::serialize(std::ostream &os, u16 protocol_version)
// the protocol version
writeU8(os, drowning);
writeU8(os, leveled);
+ writeU8(os, liquid_range);
}
void ContentFeatures::deSerialize(std::istream &is)
@@ -350,6 +352,7 @@ void ContentFeatures::deSerialize(std::istream &is)
// otherwise changes the protocol version
drowning = readU8(is);
leveled = readU8(is);
+ liquid_range = readU8(is);
}catch(SerializationError &e) {};
}