Core/Dungeon Finder: Add log error when no areatrigger found for map and difficulty
--HG-- branch : trunk
This commit is contained in:
@@ -1868,7 +1868,10 @@ void LFGMgr::TeleportPlayer(Player* plr, bool out, bool fromOpcode /*= false*/)
|
|||||||
{
|
{
|
||||||
AreaTrigger const* at = sObjectMgr.GetMapEntranceTrigger(dungeon->map);
|
AreaTrigger const* at = sObjectMgr.GetMapEntranceTrigger(dungeon->map);
|
||||||
if (!at)
|
if (!at)
|
||||||
|
{
|
||||||
|
sLog.outError("LfgMgr::TeleportPlayer: Failed to teleport [" UI64FMTD "]: No areatrigger found for map: %u difficulty: %u", plr->GetGUID(), dungeon->map, dungeon->difficulty);
|
||||||
error = LFG_TELEPORTERROR_INVALID_LOCATION;
|
error = LFG_TELEPORTERROR_INVALID_LOCATION;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mapid = at->target_mapId;
|
mapid = at->target_mapId;
|
||||||
@@ -1892,7 +1895,7 @@ void LFGMgr::TeleportPlayer(Player* plr, bool out, bool fromOpcode /*= false*/)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
error = LFG_TELEPORTERROR_INVALID_LOCATION;
|
error = LFG_TELEPORTERROR_INVALID_LOCATION;
|
||||||
sLog.outError("LfgMgr::TeleportPlayer: Failed to teleport [" UI64FMTD "] to map %u: ", plr->GetGUID(), mapid);
|
sLog.outError("LfgMgr::TeleportPlayer: Failed to teleport [" UI64FMTD "] to map %u: ", plr->GetGUID(), mapid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user