diff options
author | sfan5 <sfan5@live.de> | 2022-09-04 16:22:12 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-09-10 12:21:29 +0200 |
commit | c607bee19e286165fd497d57d2bb2b8ac5986f36 (patch) | |
tree | 69d5722e4ac3dc1d900f9d7640fe82a5db277499 /src/client/particles.cpp | |
parent | adb03ccc6dfefd4af2bc0c4607a67c574e2e6164 (diff) | |
download | minetest-c607bee19e286165fd497d57d2bb2b8ac5986f36.tar.xz |
Allow looped animation to be used safely with old clients
fixes #12657
Diffstat (limited to 'src/client/particles.cpp')
-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 95d3c2021..85baee7cd 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; |