forked from Mirrorlandia_minetest/minetest
fix infinite spawners
This commit is contained in:
parent
e0889c6c03
commit
0c792db05c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user