aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-16 01:34:09 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:46 +0200
commit37a5f8a30bc2e267909d699faef4910a3a261555 (patch)
treef210efc6d415f2ffb16ed2747c4d7d77196244e8 /src/nodedef.cpp
parentf107967fdcfd66add9638b2932723e55c4f4ae2d (diff)
downloadminetest-37a5f8a30bc2e267909d699faef4910a3a261555.tar.gz
minetest-37a5f8a30bc2e267909d699faef4910a3a261555.tar.bz2
minetest-37a5f8a30bc2e267909d699faef4910a3a261555.zip
Move cook result properly to ContentFeatures
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r--src/nodedef.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp
index 4e43369b4..2e0c6fad6 100644
--- a/src/nodedef.cpp
+++ b/src/nodedef.cpp
@@ -140,6 +140,8 @@ void ContentFeatures::reset()
air_equivalent = false;
often_contains_mineral = false;
dug_item = "";
+ extra_dug_item = "";
+ extra_dug_item_rarity = 2;
initial_metadata = NULL;
liquid_type = LIQUID_NONE;
liquid_alternative_flowing = CONTENT_IGNORE;
@@ -149,6 +151,7 @@ void ContentFeatures::reset()
damage_per_second = 0;
selection_box = NodeBox();
material = MaterialProperties();
+ cookresult_item = "";
}
void ContentFeatures::serialize(std::ostream &os)
@@ -198,6 +201,7 @@ void ContentFeatures::serialize(std::ostream &os)
writeU32(os, damage_per_second);
selection_box.serialize(os);
material.serialize(os);
+ os<<serializeString(cookresult_item);
}
void ContentFeatures::deSerialize(std::istream &is, IGameDef *gamedef)
@@ -250,6 +254,7 @@ void ContentFeatures::deSerialize(std::istream &is, IGameDef *gamedef)
damage_per_second = readU32(is);
selection_box.deSerialize(is);
material.deSerialize(is);
+ cookresult_item = deSerializeString(is);
}
void ContentFeatures::setTexture(u16 i, std::string name)