Skip to content

Commit

Permalink
fix infinite spawners
Browse files Browse the repository at this point in the history
  • Loading branch information
obneq authored and est31 committed Apr 18, 2015
1 parent e0889c6 commit 0c792db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/particles.cpp
Expand Up @@ -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,
Expand All @@ -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);
}
}
}
Expand Down

0 comments on commit 0c792db

Please sign in to comment.