1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 22:19:07 +00:00

Fix dead object accumulation when hitting note in song circle

This commit is contained in:
fgenesis 2014-03-10 01:56:49 +01:00
parent 04ce34afa2
commit 071ca187e6

View file

@ -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;