Core/Transports: Moved teleporting transports to Map::DelayedUpdate

This commit is contained in:
Shauren
2015-05-13 22:09:54 +02:00
parent 9f3cb91281
commit 5c5cb3e555
3 changed files with 66 additions and 30 deletions

View File

@@ -2616,6 +2616,17 @@ void Map::SendObjectUpdates()
void Map::DelayedUpdate(const uint32 t_diff)
{
for (_transportsUpdateIter = _transports.begin(); _transportsUpdateIter != _transports.end();)
{
Transport* transport = *_transportsUpdateIter;
++_transportsUpdateIter;
if (!transport->IsInWorld())
continue;
transport->DelayedUpdate(t_diff);
}
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 !