mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-13 16:16:08 +00:00
tiny cleanup
This commit is contained in:
parent
f54d341242
commit
2612b6e251
1 changed files with 4 additions and 12 deletions
|
@ -5910,22 +5910,14 @@ void Game::rebuildElementUpdateList()
|
|||
elementUpdateList.clear();
|
||||
elementInteractionList.clear();
|
||||
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);
|
||||
if (e && e->layer >= LR_ELEMENTS1 && e->layer <= LR_ELEMENTS8)
|
||||
{
|
||||
if (e->getElementEffectIndex() != -1)
|
||||
{
|
||||
elementUpdateList.push_back(e);
|
||||
}
|
||||
}
|
||||
ElementEffect ee = dsq->getElementEffectByIndex(e->getElementEffectIndex());
|
||||
const int eeidx = e->getElementEffectIndex();
|
||||
if (eeidx != -1 && e->layer >= LR_ELEMENTS1 && e->layer <= LR_ELEMENTS8)
|
||||
elementUpdateList.push_back(e);
|
||||
ElementEffect ee = dsq->getElementEffectByIndex(eeidx);
|
||||
if(ee.type == EFX_WAVY)
|
||||
{
|
||||
elementInteractionList.push_back(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue