diff options
author | sfan5 <sfan5@live.de> | 2022-09-04 16:22:12 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-09-14 13:48:06 +0200 |
commit | a20b758e199eb48da7d99ba23808e15d987f2d3f (patch) | |
tree | d1690caff18c3885b67afe33f28bf12b0fbaaa94 /src/client | |
parent | 128842becf4d93ef333c317b6f999af8c90afe96 (diff) | |
download | minetest-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/client')
-rw-r--r-- | src/client/particles.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/particles.cpp b/src/client/particles.cpp index 818cdc8cc..248f461bc 100644 --- a/src/client/particles.cpp +++ b/src/client/particles.cpp @@ -555,6 +555,7 @@ void ParticleSpawner::spawnParticle(ClientEnvironment *env, float radius, // synchronize animation length with particle life if desired if (pp.animation.type != TAT_NONE) { + // FIXME: this should be moved into a TileAnimationParams class method if (pp.animation.type == TAT_VERTICAL_FRAMES && pp.animation.vertical_frames.length < 0) { auto& a = pp.animation.vertical_frames; |