mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-15 14:09:06 +00:00
Fix dead object accumulation when hitting note in song circle
This commit is contained in:
parent
04ce34afa2
commit
071ca187e6
1 changed files with 4 additions and 0 deletions
|
@ -574,6 +574,7 @@ void SongIcon::openNote()
|
|||
|
||||
float glowLife = 0.5;
|
||||
|
||||
{
|
||||
Quad *q = new Quad("particles/glow", position);
|
||||
q->scale.interpolateTo(Vector(10, 10), glowLife+0.1f);
|
||||
q->alpha.ensureData();
|
||||
|
@ -585,6 +586,8 @@ void SongIcon::openNote()
|
|||
q->setBlendType(RenderObject::BLEND_ADD);
|
||||
q->followCamera = 1;
|
||||
dsq->game->addRenderObject(q, LR_HUD);
|
||||
q->setDecayRate(1/(glowLife+0.1f));
|
||||
}
|
||||
|
||||
{
|
||||
std::ostringstream os2;
|
||||
|
@ -603,6 +606,7 @@ void SongIcon::openNote()
|
|||
//q->setBlendType(RenderObject::BLEND_ADD);
|
||||
q->followCamera = 1;
|
||||
dsq->game->addRenderObject(q, LR_HUD);
|
||||
q->setDecayRate(1/(glowLife+0.1f));
|
||||
}
|
||||
|
||||
avatar->songInterfaceTimer = 1.0;
|
||||
|
|
Loading…
Reference in a new issue