summaryrefslogtreecommitdiff
path: root/src/particles.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-09-04 16:22:12 +0200
committersfan5 <sfan5@live.de>2022-09-14 13:48:06 +0200
commita20b758e199eb48da7d99ba23808e15d987f2d3f (patch)
treed1690caff18c3885b67afe33f28bf12b0fbaaa94 /src/particles.cpp
parent128842becf4d93ef333c317b6f999af8c90afe96 (diff)
downloadminetest-a20b758e199eb48da7d99ba23808e15d987f2d3f.tar.gz
minetest-a20b758e199eb48da7d99ba23808e15d987f2d3f.tar.bz2
minetest-a20b758e199eb48da7d99ba23808e15d987f2d3f.zip
Allow looped animation to be used safely with old clients
fixes #12657
Diffstat (limited to 'src/particles.cpp')
-rw-r--r--src/particles.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/particles.cpp b/src/particles.cpp
index 19b3418b7..e495ecd03 100644
--- a/src/particles.cpp
+++ b/src/particles.cpp
@@ -127,7 +127,7 @@ void ParticleParameters::serialize(std::ostream &os, u16 protocol_ver) const
os << serializeString32(texture.string);
writeU8(os, vertical);
writeU8(os, collision_removal);
- animation.serialize(os, 6); /* NOT the protocol ver */
+ animation.serialize(os, protocol_ver);
writeU8(os, glow);
writeU8(os, object_collision);
writeU16(os, node.param0);
@@ -160,7 +160,7 @@ void ParticleParameters::deSerialize(std::istream &is, u16 protocol_ver)
texture.string = deSerializeString32(is);
vertical = readU8(is);
collision_removal = readU8(is);
- animation.deSerialize(is, 6); /* NOT the protocol ver */
+ animation.deSerialize(is, protocol_ver);
glow = readU8(is);
object_collision = readU8(is);