mirror of
https://github.com/minetest/minetest.git
synced 2025-03-14 14:22:36 +01:00
fix infinite spawners
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user