mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Introduce player map references.
This commit is contained in:
parent
0ae2133254
commit
79558a32d9
12 changed files with 194 additions and 80 deletions
|
|
@ -336,7 +336,7 @@ uint32 MapManager::GetNumPlayersInInstances()
|
|||
MapInstanced::InstancedMaps &maps = ((MapInstanced *)map)->GetInstancedMaps();
|
||||
for(MapInstanced::InstancedMaps::iterator mitr = maps.begin(); mitr != maps.end(); ++mitr)
|
||||
if(mitr->second->IsDungeon())
|
||||
ret += ((InstanceMap*)mitr->second)->GetPlayers().size();
|
||||
ret += ((InstanceMap*)mitr->second)->m_mapRefManager.getSize();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue