mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Map: Reenable error msg to find missing graveyards and use a better msg when a zone id is not found
--HG-- branch : trunk
This commit is contained in:
@@ -5960,8 +5960,12 @@ WorldSafeLocsEntry const *ObjectMgr::GetClosestGraveYard(float x, float y, float
|
||||
// search for zone associated closest graveyard
|
||||
uint32 zoneId = sMapMgr.GetZoneId(MapId,x,y,z);
|
||||
|
||||
if (!zoneId && z > -500)
|
||||
sLog.outError("Bad zoneId: Map = %u (%f, %f, %f)", MapId, x, y, z);
|
||||
if (!zoneId)
|
||||
{
|
||||
if (z > -500)
|
||||
sLog.outError("ZoneId not found for map %u coords (%f, %f, %f)", MapId, x, y, z);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
// Simulate std. algorithm:
|
||||
@@ -5978,7 +5982,7 @@ WorldSafeLocsEntry const *ObjectMgr::GetClosestGraveYard(float x, float y, float
|
||||
|
||||
if (graveLow == graveUp && !map->IsBattleArena())
|
||||
{
|
||||
//sLog.outErrorDb("Table `game_graveyard_zone` incomplete: Zone %u Team %u does not have a linked graveyard.",zoneId,team);
|
||||
sLog.outErrorDb("Table `game_graveyard_zone` incomplete: Zone %u Team %u does not have a linked graveyard.",zoneId,team);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user