*Delete object after map update. This will make mtmap safer.
--HG-- branch : trunk
This commit is contained in:
1 parent
df4fe8c4dc
commit
1f88411ccc
5 files changed
+41
-51
No files matched your search
@@ -60,31 +60,21 @@ void MapInstanced::Update(const uint32& t)
|
||||
}
|
||||
}
|
||||
|
||||
void MapInstanced::MoveAllCreaturesInMoveList()
|
||||
void MapInstanced::DelayedUpdate(const uint32 diff)
|
||||
{
|
||||
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); ++i)
|
||||
{
|
||||
i->second->MoveAllCreaturesInMoveList();
|
||||
}
|
||||
i->second->DelayedUpdate(diff);
|
||||
|
||||
Map::MoveAllCreaturesInMoveList();
|
||||
}
|
||||
|
||||
void MapInstanced::RemoveAllObjectsInRemoveList()
|
||||
{
|
||||
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); ++i)
|
||||
{
|
||||
i->second->RemoveAllObjectsInRemoveList();
|
||||
}
|
||||
|
||||
Map::RemoveAllObjectsInRemoveList();
|
||||
Map::DelayedUpdate(diff); // this may be removed
|
||||
}
|
||||
|
||||
/*
|
||||
void MapInstanced::RelocationNotify()
|
||||
{
|
||||
for (InstancedMaps::iterator i = m_InstancedMaps.begin(); i != m_InstancedMaps.end(); ++i)
|
||||
i->second->RelocationNotify();
|
||||
}
|
||||
*/
|
||||
|
||||
bool MapInstanced::RemoveBones(uint64 guid, float x, float y)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user