diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-24 03:28:08 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-24 04:24:26 +0200 |
commit | 93219e3b9d2eae11a447556dfe837706baeff22a (patch) | |
tree | 73b26a9e1bae4375d3c966ac037a3d2602f225ad /src/nodedef.cpp | |
parent | 77120a021df955947841f9646cb61d67a272618b (diff) | |
download | minetest-93219e3b9d2eae11a447556dfe837706baeff22a.tar.gz minetest-93219e3b9d2eae11a447556dfe837706baeff22a.tar.bz2 minetest-93219e3b9d2eae11a447556dfe837706baeff22a.zip |
Add sounds, tune things
Diffstat (limited to 'src/nodedef.cpp')
-rw-r--r-- | src/nodedef.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 2a21136bf..954467d48 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -156,6 +156,7 @@ void ContentFeatures::reset() legacy_facedir_simple = false; legacy_wallmounted = false; sound_footstep = SimpleSoundSpec(); + sound_dug = SimpleSoundSpec(); } void ContentFeatures::serialize(std::ostream &os) @@ -203,6 +204,7 @@ void ContentFeatures::serialize(std::ostream &os) writeU8(os, legacy_facedir_simple); writeU8(os, legacy_wallmounted); serializeSimpleSoundSpec(sound_footstep, os); + serializeSimpleSoundSpec(sound_dug, os); } void ContentFeatures::deSerialize(std::istream &is) @@ -256,6 +258,7 @@ void ContentFeatures::deSerialize(std::istream &is) legacy_wallmounted = readU8(is); try{ deSerializeSimpleSoundSpec(sound_footstep, is); + deSerializeSimpleSoundSpec(sound_dug, is); }catch(SerializationError &e) {}; } |