diff options
author | Kahrl <kahrl@gmx.net> | 2011-11-26 00:09:36 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:52 +0200 |
commit | c1479a273266709d6d0775c690dce31a7a430aa5 (patch) | |
tree | df1a47c7c0b8d923392f6476fdbaf41a15ed11cb /src/nodedef.cpp | |
parent | 1f53ca5f4c2736ab060d93885d9bd956f14ae430 (diff) | |
download | minetest-c1479a273266709d6d0775c690dce31a7a430aa5.tar.gz minetest-c1479a273266709d6d0775c690dce31a7a430aa5.tar.bz2 minetest-c1479a273266709d6d0775c690dce31a7a430aa5.zip |
Add node definitions in Lua and do not use content_mapnode_init anymore (except in test.cpp)
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 7855ffef7..c5ad3af01 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -137,7 +137,6 @@ void ContentFeatures::reset() climbable = false; buildable_to = false; wall_mounted = false; - air_equivalent = false; often_contains_mineral = false; dug_item = ""; extra_dug_item = ""; @@ -185,7 +184,6 @@ void ContentFeatures::serialize(std::ostream &os) writeU8(os, climbable); writeU8(os, buildable_to); writeU8(os, wall_mounted); - writeU8(os, air_equivalent); writeU8(os, often_contains_mineral); os<<serializeString(dug_item); os<<serializeString(extra_dug_item); @@ -237,7 +235,6 @@ void ContentFeatures::deSerialize(std::istream &is, IGameDef *gamedef) climbable = readU8(is); buildable_to = readU8(is); wall_mounted = readU8(is); - air_equivalent = readU8(is); often_contains_mineral = readU8(is); dug_item = deSerializeString(is); extra_dug_item = deSerializeString(is); @@ -329,7 +326,6 @@ public: f.pointable = false; f.diggable = false; f.buildable_to = true; - f.air_equivalent = true; // Insert directly into containers content_t c = CONTENT_AIR; m_content_features[c] = f; @@ -348,7 +344,6 @@ public: f.diggable = false; // A way to remove accidental CONTENT_IGNOREs f.buildable_to = true; - f.air_equivalent = true; // Insert directly into containers content_t c = CONTENT_IGNORE; m_content_features[c] = f; |