1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-24 08:28:49 -05:00

Fix MaterialProperties serialization (constant_time was missing)

This commit is contained in:
Perttu Ahola 2011-11-15 22:04:16 +02:00
parent 2f2392f783
commit e4dff41560

View File

@ -27,6 +27,7 @@ void MaterialProperties::serialize(std::ostream &os)
{ {
writeU8(os, 0); // version writeU8(os, 0); // version
writeU8(os, diggability); writeU8(os, diggability);
writeF1000(os, constant_time);
writeF1000(os, weight); writeF1000(os, weight);
writeF1000(os, crackiness); writeF1000(os, crackiness);
writeF1000(os, crumbliness); writeF1000(os, crumbliness);
@ -39,6 +40,7 @@ void MaterialProperties::deSerialize(std::istream &is)
if(version != 0) if(version != 0)
throw SerializationError("unsupported MaterialProperties version"); throw SerializationError("unsupported MaterialProperties version");
diggability = (enum Diggability)readU8(is); diggability = (enum Diggability)readU8(is);
constant_time = readF1000(is);
weight = readF1000(is); weight = readF1000(is);
crackiness = readF1000(is); crackiness = readF1000(is);
crumbliness = readF1000(is); crumbliness = readF1000(is);