From a20b758e199eb48da7d99ba23808e15d987f2d3f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 4 Sep 2022 16:22:12 +0200 Subject: Allow looped animation to be used safely with old clients fixes #12657 --- src/client/particles.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client') 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; -- cgit v1.2.3