aboutsummaryrefslogtreecommitdiff
path: root/src/particles.cpp
diff options
context:
space:
mode:
authorobneq <obbneq@gmail.com>2015-04-05 22:02:01 +0200
committerest31 <MTest31@outlook.com>2015-04-18 20:14:34 +0200
commit0c792db05c9e53a2e5dd7f6462f8aaa561fde858 (patch)
tree65ee515c223c2645b2118ab37b93caf2d78372c7 /src/particles.cpp
parente0889c6c03d48fabc15adf06af811ab2bfc2fe23 (diff)
downloadminetest-0c792db05c9e53a2e5dd7f6462f8aaa561fde858.tar.gz
minetest-0c792db05c9e53a2e5dd7f6462f8aaa561fde858.tar.bz2
minetest-0c792db05c9e53a2e5dd7f6462f8aaa561fde858.zip
fix infinite spawners
Diffstat (limited to 'src/particles.cpp')
-rw-r--r--src/particles.cpp3
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);
}
}
}