*Massive cleanup redux.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-17 16:20:24 -07:00
parent e585187b24
commit 3f338cc1c3
862 changed files with 2736 additions and 4797 deletions
+5 -5
View File
@@ -87,7 +87,7 @@ class TRINITY_DLL_DECL NGrid
ASSERT(y < N);
return i_cells[x][y];
}
GridType& operator()(unsigned short x, unsigned short y)
{
ASSERT(x < N);
@@ -131,8 +131,8 @@ class TRINITY_DLL_DECL NGrid
template<class T, class TT> void Visit(TypeContainerVisitor<T, TypeMapContainer<TT> > &visitor)
{
for(unsigned int x=0; x < N; ++x)
for(unsigned int y=0; y < N; ++y)
for (unsigned int x=0; x < N; ++x)
for (unsigned int y=0; y < N; ++y)
getGridType(x, y).Visit(visitor);
}
@@ -144,8 +144,8 @@ class TRINITY_DLL_DECL NGrid
unsigned int ActiveObjectsInGrid(void) const
{
unsigned int count=0;
for(unsigned int x=0; x < N; ++x)
for(unsigned int y=0; y < N; ++y)
for (unsigned int x=0; x < N; ++x)
for (unsigned int y=0; y < N; ++y)
count += i_cells[x][y].ActiveObjectsInGrid();
return count;
}