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:
parent
b20ae992a6
commit
90b613b1fb
2 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue