[8031] Move player update code to Map::Update. Author: Ambal
--HG-- branch : trunk
This commit is contained in:
1 parent
a2f10c496f
commit
fe7c616b2d
4 files changed
+9
-15
No files matched your search
@@ -391,15 +391,6 @@ ObjectAccessor::Update(uint32 diff)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ObjectAccessor::UpdatePlayers(uint32 diff)
|
||||
{
|
||||
HashMapHolder<Player>::MapType& playerMap = HashMapHolder<Player>::GetContainer();
|
||||
for(HashMapHolder<Player>::MapType::iterator iter = playerMap.begin(); iter != playerMap.end(); ++iter)
|
||||
if(iter->second->IsInWorld())
|
||||
iter->second->Update(diff);
|
||||
}
|
||||
|
||||
void
|
||||
ObjectAccessor::WorldObjectChangeAccumulator::Visit(PlayerMapType &m)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user