summaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2013-01-27 10:33:25 +0100
committerPilzAdam <PilzAdam@gmx.de>2013-02-19 20:02:40 +0100
commit365c169b43f61b7f957bdd302b3cf9a837cabec1 (patch)
tree05117c9c24e525868c03d81e0d44a513b47d1548 /src/nodedef.cpp
parent214a8b4597728213065f1bf880f4357b723b5bea (diff)
downloadminetest-365c169b43f61b7f957bdd302b3cf9a837cabec1.tar.gz
minetest-365c169b43f61b7f957bdd302b3cf9a837cabec1.tar.bz2
minetest-365c169b43f61b7f957bdd302b3cf9a837cabec1.zip
Disable placement prediction for nodes that use on_rightclick
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 729c69c92..12d9238ad 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -199,6 +199,7 @@ void ContentFeatures::reset()
diggable = true;
climbable = false;
buildable_to = false;
+ rightclickable = true;
liquid_type = LIQUID_NONE;
liquid_alternative_flowing = "";
liquid_alternative_source = "";
@@ -271,6 +272,7 @@ void ContentFeatures::serialize(std::ostream &os, u16 protocol_version)
serializeSimpleSoundSpec(sound_dug, os);
// Stuff below should be moved to correct place in a version that otherwise changes
// the protocol version
+ writeU8(os, rightclickable);
}
void ContentFeatures::deSerialize(std::istream &is)
@@ -334,6 +336,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
+ rightclickable = readU8(is);
}catch(SerializationError &e) {};
}