mirror of
https://github.com/mangosfour/server.git
synced 2025-12-20 16:37:04 +00:00
Move PlayersNearGrid() to Map class.
This commit is contained in:
parent
79558a32d9
commit
520fce4b27
5 changed files with 25 additions and 30 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue