summaryrefslogtreecommitdiff
path: root/src/particleemitter.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-03 20:06:08 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-03 20:18:49 +0300
commit98c10803f79ce9decb4a431719e18bb27aac4485 (patch)
treecbe6325a1e2deafe38170565a0c1d9c3f5cb7faa /src/particleemitter.cpp
parent57a81ed6cf1c02d7ec8bfe1e6f0a1d3232309534 (diff)
downloadplus-98c10803f79ce9decb4a431719e18bb27aac4485.tar.gz
plus-98c10803f79ce9decb4a431719e18bb27aac4485.tar.bz2
plus-98c10803f79ce9decb4a431719e18bb27aac4485.tar.xz
plus-98c10803f79ce9decb4a431719e18bb27aac4485.zip
Improve a bit animation speed.
Diffstat (limited to 'src/particleemitter.cpp')
-rw-r--r--src/particleemitter.cpp4
1 files changed, 2 insertions, 2 deletions
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<Particle *> 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);