From 98c10803f79ce9decb4a431719e18bb27aac4485 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Jun 2012 20:06:08 +0300 Subject: Improve a bit animation speed. --- src/particleemitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/particleemitter.cpp') diff --git a/src/particleemitter.cpp b/src/particleemitter.cpp index 5fefd3609..27eb89291 100644 --- a/src/particleemitter.cpp +++ b/src/particleemitter.cpp @@ -527,12 +527,12 @@ std::list ParticleEmitter::createParticles(int tick) newParticle = new ImageParticle(mMap, mParticleImage); } - else if (!mParticleRotation.empty()) + else if (!mParticleRotation.mFrames.empty()) { Animation *newAnimation = new Animation(mParticleRotation); newParticle = new RotationalParticle(mMap, newAnimation); } - else if (!mParticleAnimation.empty()) + else if (!mParticleAnimation.mFrames.empty()) { Animation *newAnimation = new Animation(mParticleAnimation); newParticle = new AnimationParticle(mMap, newAnimation); -- cgit v1.2.3-70-g09d2