summaryrefslogtreecommitdiff
path: root/src/particle/particleemitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/particle/particleemitter.cpp')
-rw-r--r--src/particle/particleemitter.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/particle/particleemitter.cpp b/src/particle/particleemitter.cpp
index af9b32fe4..5cba3ba54 100644
--- a/src/particle/particleemitter.cpp
+++ b/src/particle/particleemitter.cpp
@@ -483,14 +483,13 @@ ParticleEmitter::readParticleEmitterProp(XmlNodePtrConst propertyNode, T def)
return retval;
}
-std::list<Particle *> ParticleEmitter::createParticles(const int tick)
+void ParticleEmitter::createParticles(const int tick,
+ std::vector<Particle*> &newParticles)
{
- std::list<Particle *> newParticles;
-
if (mOutputPauseLeft > 0)
{
mOutputPauseLeft --;
- return newParticles;
+ return;
}
mOutputPauseLeft = mOutputPause.value(tick);
@@ -574,8 +573,6 @@ std::list<Particle *> ParticleEmitter::createParticles(const int tick)
newParticles.push_back(newParticle);
}
-
- return newParticles;
}
void ParticleEmitter::adjustSize(const int w, const int h)