*Delete object after map update. This will make mtmap safer.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-25 15:12:22 -05:00
parent df4fe8c4dc
commit 1f88411ccc
5 changed files with 41 additions and 51 deletions

View File

@@ -278,6 +278,9 @@ MapManager::Update(uint32 diff)
}
#endif
for(MapMapType::iterator iter = i_maps.begin(); iter != i_maps.end(); ++iter)
iter->second->DelayedUpdate(i_timer.GetCurrent());
ObjectAccessor::Instance().Update(i_timer.GetCurrent());
sWorld.RecordTimeDiff("UpdateObjectAccessor");
for (TransportSet::iterator iter = m_Transports.begin(); iter != m_Transports.end(); ++iter)