diff options
author | Kahrl <kahrl@gmx.net> | 2012-03-19 01:08:04 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-03 22:31:00 +0300 |
commit | 704782c95b8a4194a9383da55d93f37fd0f7278f (patch) | |
tree | 6f69d40659b463b54670b487ee4a0d0c2c63891b /src/nodedef.cpp | |
parent | 67059e193229137e88f5e10e08c9c7e18c408281 (diff) | |
download | minetest-704782c95b8a4194a9383da55d93f37fd0f7278f.tar.gz minetest-704782c95b8a4194a9383da55d93f37fd0f7278f.tar.bz2 minetest-704782c95b8a4194a9383da55d93f37fd0f7278f.zip |
WIP node metadata, node timers
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index da74c8ce5..f6273db81 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -145,7 +145,6 @@ void ContentFeatures::reset() diggable = true; climbable = false; buildable_to = false; - metadata_name = ""; liquid_type = LIQUID_NONE; liquid_alternative_flowing = ""; liquid_alternative_source = ""; @@ -194,7 +193,7 @@ void ContentFeatures::serialize(std::ostream &os) writeU8(os, diggable); writeU8(os, climbable); writeU8(os, buildable_to); - os<<serializeString(metadata_name); + os<<serializeString(""); // legacy: used to be metadata_name writeU8(os, liquid_type); os<<serializeString(liquid_alternative_flowing); os<<serializeString(liquid_alternative_source); @@ -248,7 +247,7 @@ void ContentFeatures::deSerialize(std::istream &is) diggable = readU8(is); climbable = readU8(is); buildable_to = readU8(is); - metadata_name = deSerializeString(is); + deSerializeString(is); // legacy: used to be metadata_name liquid_type = (enum LiquidType)readU8(is); liquid_alternative_flowing = deSerializeString(is); liquid_alternative_source = deSerializeString(is); |