mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Players: Allow teleporting to a specific instance id
This commit is contained in:
@@ -75,7 +75,9 @@ void WorldSession::HandleMoveWorldportAck()
|
||||
player->m_InstanceValid = true;
|
||||
|
||||
Map* oldMap = player->GetMap();
|
||||
Map* newMap = sMapMgr->CreateMap(loc.GetMapId(), player);
|
||||
Map* newMap = GetPlayer()->GetTeleportDestInstanceId() ?
|
||||
sMapMgr->FindMap(loc.GetMapId(), *GetPlayer()->GetTeleportDestInstanceId()) :
|
||||
sMapMgr->CreateMap(loc.GetMapId(), GetPlayer());
|
||||
|
||||
if (player->IsInWorld())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user