mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-18 18:54:58 +00:00
tiny cleanup
This commit is contained in:
parent
f54d341242
commit
2612b6e251
1 changed files with 4 additions and 12 deletions
|
@ -5910,24 +5910,16 @@ void Game::rebuildElementUpdateList()
|
||||||
elementUpdateList.clear();
|
elementUpdateList.clear();
|
||||||
elementInteractionList.clear();
|
elementInteractionList.clear();
|
||||||
for (int i = 0; i < dsq->getNumElements(); i++)
|
for (int i = 0; i < dsq->getNumElements(); i++)
|
||||||
//for (int i = LR_ELEMENTS1; i <= LR_ELEMENTS8; i++)
|
|
||||||
{
|
{
|
||||||
//RenderObjectLayer *rl = dsq->getRenderObjectLayer(i);
|
|
||||||
Element *e = dsq->getElement(i);
|
Element *e = dsq->getElement(i);
|
||||||
if (e && e->layer >= LR_ELEMENTS1 && e->layer <= LR_ELEMENTS8)
|
const int eeidx = e->getElementEffectIndex();
|
||||||
{
|
if (eeidx != -1 && e->layer >= LR_ELEMENTS1 && e->layer <= LR_ELEMENTS8)
|
||||||
if (e->getElementEffectIndex() != -1)
|
|
||||||
{
|
|
||||||
elementUpdateList.push_back(e);
|
elementUpdateList.push_back(e);
|
||||||
}
|
ElementEffect ee = dsq->getElementEffectByIndex(eeidx);
|
||||||
}
|
|
||||||
ElementEffect ee = dsq->getElementEffectByIndex(e->getElementEffectIndex());
|
|
||||||
if(ee.type == EFX_WAVY)
|
if(ee.type == EFX_WAVY)
|
||||||
{
|
|
||||||
elementInteractionList.push_back(e);
|
elementInteractionList.push_back(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void Game::setElementLayerFlags()
|
void Game::setElementLayerFlags()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue