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:
parent
d2a7f9f6ee
commit
ecc03ca14b
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue