forked from teamnwah/openmw-tes3coop
Remove unused numUnload
This commit is contained in:
parent
c775e05d7a
commit
9f13315d1c
1 changed files with 0 additions and 26 deletions
|
@ -269,24 +269,6 @@ namespace MWWorld
|
||||||
|
|
||||||
CellStoreCollection::iterator active = mActiveCells.begin();
|
CellStoreCollection::iterator active = mActiveCells.begin();
|
||||||
|
|
||||||
// get the number of cells to unload
|
|
||||||
int numUnload = 0;
|
|
||||||
while (active!=mActiveCells.end())
|
|
||||||
{
|
|
||||||
if ((*active)->getCell()->isExterior())
|
|
||||||
{
|
|
||||||
if (std::abs (X-(*active)->getCell()->getGridX())<=1 &&
|
|
||||||
std::abs (Y-(*active)->getCell()->getGridY())<=1)
|
|
||||||
{
|
|
||||||
// keep cells within the new 3x3 grid
|
|
||||||
++active;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
++active;
|
|
||||||
++numUnload;
|
|
||||||
}
|
|
||||||
|
|
||||||
active = mActiveCells.begin();
|
active = mActiveCells.begin();
|
||||||
while (active!=mActiveCells.end())
|
while (active!=mActiveCells.end())
|
||||||
{
|
{
|
||||||
|
@ -435,14 +417,6 @@ namespace MWWorld
|
||||||
// remove active
|
// remove active
|
||||||
CellStoreCollection::iterator active = mActiveCells.begin();
|
CellStoreCollection::iterator active = mActiveCells.begin();
|
||||||
|
|
||||||
// count number of cells to unload
|
|
||||||
int numUnload = 0;
|
|
||||||
while (active!=mActiveCells.end())
|
|
||||||
{
|
|
||||||
++active;
|
|
||||||
++numUnload;
|
|
||||||
}
|
|
||||||
|
|
||||||
// unload
|
// unload
|
||||||
int current = 0;
|
int current = 0;
|
||||||
active = mActiveCells.begin();
|
active = mActiveCells.begin();
|
||||||
|
|
Loading…
Reference in a new issue