diff options
author | obneq <obbneq@gmail.com> | 2015-04-05 22:02:01 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-04-18 20:14:34 +0200 |
commit | 0c792db05c9e53a2e5dd7f6462f8aaa561fde858 (patch) | |
tree | 65ee515c223c2645b2118ab37b93caf2d78372c7 | |
parent | e0889c6c03d48fabc15adf06af811ab2bfc2fe23 (diff) | |
download | minetest-0c792db05c9e53a2e5dd7f6462f8aaa561fde858.tar.gz minetest-0c792db05c9e53a2e5dd7f6462f8aaa561fde858.tar.bz2 minetest-0c792db05c9e53a2e5dd7f6462f8aaa561fde858.zip |
fix infinite spawners
-rw-r--r-- | src/particles.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/particles.cpp b/src/particles.cpp index b13e904b0..15e2a6597 100644 --- a/src/particles.cpp +++ b/src/particles.cpp @@ -308,7 +308,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env) *(m_maxsize-m_minsize) +m_minsize; - new Particle( + Particle* toadd = new Particle( m_gamedef, m_smgr, m_player, @@ -323,6 +323,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env) m_texture, v2f(0.0, 0.0), v2f(1.0, 1.0)); + m_particlemanager->addParticle(toadd); } } } |