1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-04-07 23:27:12 +00:00

Fix edge case where particles would not be spawned when the emitter was started in every frame.

Broken in 68c29a3fc9.
This commit is contained in:
fgenesis 2025-04-01 06:50:11 +02:00
parent d2a7f9f6ee
commit ecc03ca14b

View file

@ -64,6 +64,7 @@ Emitter::Emitter(ParticleEffect *pe) : Quad(), pe(pe)
{
//HACK:
cull = false;
lastDTDifference = 0;
}
void Emitter::destroy()
@ -214,7 +215,6 @@ void Emitter::onUpdate(float dt)
void Emitter::start()
{
didOne = false;
lastDTDifference = 0;
lastSpawn = getSpawnPosition();
}