[8031] Move player update code to Map::Update. Author: Ambal

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-06-17 18:37:53 -05:00
1 parent a2f10c496f
commit fe7c616b2d
4 files changed
+9 -15

No files matched your search

+9
View File
@@ -649,6 +649,15 @@ void Map::RemoveUnitFromNotify(int32 slot)
void Map::Update(const uint32 &t_diff)
{
/// update players at tick
for(m_mapRefIter = m_mapRefManager.begin(); m_mapRefIter != m_mapRefManager.end(); ++m_mapRefIter)
{
Player* plr = m_mapRefIter->getSource();
if(plr && plr->IsInWorld())
plr->Update(t_diff);
}
/// update active cells around players and active objects
resetMarkedCells();
Trinity::ObjectUpdater updater(t_diff);