diff options
Diffstat (limited to 'src/server/game/Grids/NGrid.h')
-rwxr-xr-x | src/server/game/Grids/NGrid.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/server/game/Grids/NGrid.h b/src/server/game/Grids/NGrid.h index d0c575da1d6..c87fd7e6129 100755 --- a/src/server/game/Grids/NGrid.h +++ b/src/server/game/Grids/NGrid.h @@ -171,8 +171,6 @@ class NGrid } */ - //TODO: This does not compile in *nix. Hope somebody can find out how to write such template function. - /* template<class T> uint32 GetWorldObjectCountInNGrid() const { @@ -182,26 +180,6 @@ class NGrid count += i_cells[x][y].template GetWorldObjectCountInGrid<T>(); return count; } - */ - - //These two temporarily replace GetWorldObjectCountInNGrid - uint32 GetPlayerCountInNGrid() const - { - uint32 count = 0; - for (uint32 x = 0; x < N; ++x) - for (uint32 y = 0; y < N; ++y) - count += i_cells[x][y].GetWorldObjectCountInGrid<Player>(); - return count; - } - - uint32 GetWorldCreatureCountInNGrid() const - { - uint32 count = 0; - for (uint32 x = 0; x < N; ++x) - for (uint32 y = 0; y < N; ++y) - count += i_cells[x][y].GetWorldObjectCountInGrid<Creature>(); - return count; - } private: uint32 i_gridId; |