aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-15 22:04:16 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:45 +0200
commite4dff41560f49473f3aeddfdfe6c37e286bf4d7e (patch)
tree0aef6c6b5ca3b79f9b10a932322b318dda423e21
parent2f2392f7834e355bfa57ef9f2fbd3f645be6ca6d (diff)
downloadminetest-e4dff41560f49473f3aeddfdfe6c37e286bf4d7e.tar.gz
minetest-e4dff41560f49473f3aeddfdfe6c37e286bf4d7e.tar.bz2
minetest-e4dff41560f49473f3aeddfdfe6c37e286bf4d7e.zip
Fix MaterialProperties serialization (constant_time was missing)
-rw-r--r--src/materials.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/materials.cpp b/src/materials.cpp
index 72547face..ab2e2d273 100644
--- a/src/materials.cpp
+++ b/src/materials.cpp
@@ -27,6 +27,7 @@ void MaterialProperties::serialize(std::ostream &os)
{
writeU8(os, 0); // version
writeU8(os, diggability);
+ writeF1000(os, constant_time);
writeF1000(os, weight);
writeF1000(os, crackiness);
writeF1000(os, crumbliness);
@@ -39,6 +40,7 @@ void MaterialProperties::deSerialize(std::istream &is)
if(version != 0)
throw SerializationError("unsupported MaterialProperties version");
diggability = (enum Diggability)readU8(is);
+ constant_time = readF1000(is);
weight = readF1000(is);
crackiness = readF1000(is);
crumbliness = readF1000(is);