diff options
author | Spp <none@none> | 2010-10-25 11:47:23 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-10-25 11:47:23 +0200 |
commit | d7bcc25e3880afc057ad7ad98b08be4e676d4531 (patch) | |
tree | 72aaf520515c7f233e5e477123f808a9b6a31626 /src/server/game/Globals/ObjectMgr.cpp | |
parent | f381e74c102f85a8127f20eb8893c574eca2110b (diff) |
Core/Map: Reenable error msg to find missing graveyards and use a better msg when a zone id is not found
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rwxr-xr-x | src/server/game/Globals/ObjectMgr.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index cc1a16fb5ed..63339a17170 100755 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -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; } |