1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-15 14:09:06 +00:00

Fixed problem with RLT_FIXED and sun form charge glow

Sometimes the glow render object was added to an array position before
darkness on the layer, which made the glow never visible and never light
up the screen.
Added the same fix to createQuad() Lua func - nodes which spawned a quad
on the dark layer in their init() function had the same problem.
This commit is contained in:
fgenesis 2011-09-19 16:54:14 +02:00
parent b20ae992a6
commit 90b613b1fb
2 changed files with 2 additions and 0 deletions

View file

@ -3175,6 +3175,7 @@ void Avatar::formAbility(int ability)
q->scale = Vector(0,0);
q->scale.interpolateTo(Vector(2,2), 0.1);
dsq->game->addRenderObject(q, LR_ELEMENTS13);
q->moveToFront();
FOR_ENTITIES(i)
{

View file

@ -3915,6 +3915,7 @@ luaFunc(createQuad)
else
layer = (LR_PARTICLES+1) - LR_ELEMENTS1;
dsq->game->addRenderObject(q, LR_ELEMENTS1+(layer-1));
q->moveToFront();
luaReturnPtr(q);
}