diff options
author | megamage <none@none> | 2009-06-17 18:37:53 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-17 18:37:53 -0500 |
commit | fe7c616b2d079f9b1edb15f9795eaf3b5c55b9a8 (patch) | |
tree | 347ca16142a779026c77e14bebdc22bebc53b630 /src/game/ObjectAccessor.cpp | |
parent | a2f10c496fcacbfd3dcb976807c8c23012aba03d (diff) |
[8031] Move player update code to Map::Update. Author: Ambal
--HG--
branch : trunk
Diffstat (limited to 'src/game/ObjectAccessor.cpp')
-rw-r--r-- | src/game/ObjectAccessor.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/game/ObjectAccessor.cpp b/src/game/ObjectAccessor.cpp index 55e7d9179b8..70a1bada3f9 100644 --- a/src/game/ObjectAccessor.cpp +++ b/src/game/ObjectAccessor.cpp @@ -392,15 +392,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) { for(PlayerMapType::iterator iter = m.begin(); iter != m.end(); ++iter) |