Move PlayersNearGrid() to Map class.

This commit is contained in:
hunuza 2008-11-16 13:32:47 +01:00
parent 79558a32d9
commit 520fce4b27
5 changed files with 25 additions and 30 deletions

View file

@ -34,7 +34,7 @@ ActiveState::Update(Map &m, NGridType &grid, GridInfo & info, const uint32 &x, c
info.UpdateTimeTracker(t_diff);
if( info.getTimeTracker().Passed() )
{
if( grid.ActiveObjectsInGrid() == 0 && !ObjectAccessor::Instance().PlayersNearGrid(x, y, m.GetId(), m.GetInstanceId()) )
if( grid.ActiveObjectsInGrid() == 0 && !m.PlayersNearGrid(x, y) )
{
ObjectGridStoper stoper(grid);
stoper.StopN();