mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Move move and remove obj from world update to map update.
--HG-- branch : trunk
This commit is contained in:
@@ -821,7 +821,9 @@ void Map::Update(const uint32 &t_diff)
|
||||
|
||||
i_lock = true;
|
||||
|
||||
MoveAllCreaturesInMoveList();
|
||||
RelocationNotify();
|
||||
RemoveAllObjectsInRemoveList();
|
||||
|
||||
// Don't unload grids if it's battleground, since we may have manually added GOs,creatures, those doesn't load from DB at grid re-load !
|
||||
// This isn't really bother us, since as soon as we have instanced BG-s, the whole map unloads as the BG gets ended
|
||||
|
||||
@@ -1616,7 +1616,7 @@ void World::Update(time_t diff)
|
||||
|
||||
/// </ul>
|
||||
///- Move all creatures with "delayed move" and remove and delete all objects with "delayed remove"
|
||||
MapManager::Instance().DoDelayedMovesAndRemoves();
|
||||
//MapManager::Instance().DoDelayedMovesAndRemoves();
|
||||
|
||||
// update the instance reset times
|
||||
sInstanceSaveManager.Update();
|
||||
|
||||
Reference in New Issue
Block a user