mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Transports
* Fixed fall damage on transports while teleporting * Fixed packets not being received by owner if sent by a controlled minion * Fixed an issue when a teleporting transport would attempt to reload its creature passengers on old map Closes #11140
This commit is contained in:
@@ -2426,8 +2426,20 @@ void Map::RemoveAllObjectsInRemoveList()
|
||||
bool on = itr->second;
|
||||
i_objectsToSwitch.erase(itr);
|
||||
|
||||
if ((obj->GetTypeId() == TYPEID_UNIT || obj->GetTypeId() == TYPEID_GAMEOBJECT) && !obj->IsPermanentWorldObject())
|
||||
SwitchGridContainers(obj, on);
|
||||
if (!obj->IsPermanentWorldObject())
|
||||
{
|
||||
switch (obj->GetTypeId())
|
||||
{
|
||||
case TYPEID_UNIT:
|
||||
SwitchGridContainers<Creature>(obj->ToCreature(), on);
|
||||
break;
|
||||
case TYPEID_GAMEOBJECT:
|
||||
SwitchGridContainers<GameObject>(obj->ToGameObject(), on);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//TC_LOG_DEBUG(LOG_FILTER_MAPS, "Object remover 1 check.");
|
||||
|
||||
Reference in New Issue
Block a user