1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

fix infinite spawners

This commit is contained in:
obneq
2015-04-05 22:02:01 +02:00
committed by est31
parent e0889c6c03
commit 0c792db05c

View File

@@ -308,7 +308,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
*(m_maxsize-m_minsize) *(m_maxsize-m_minsize)
+m_minsize; +m_minsize;
new Particle( Particle* toadd = new Particle(
m_gamedef, m_gamedef,
m_smgr, m_smgr,
m_player, m_player,
@@ -323,6 +323,7 @@ void ParticleSpawner::step(float dtime, ClientEnvironment* env)
m_texture, m_texture,
v2f(0.0, 0.0), v2f(0.0, 0.0),
v2f(1.0, 1.0)); v2f(1.0, 1.0));
m_particlemanager->addParticle(toadd);
} }
} }
} }