Skip to content
Snippets Groups Projects
Commit 0c792db0 authored by obneq's avatar obneq Committed by est31
Browse files

fix infinite spawners

parent e0889c6c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment