diff options
author | megamage <none@none> | 2009-05-14 16:50:47 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-14 16:50:47 -0500 |
commit | 047cc95388a67d5f33cb86082bbef03f654acec1 (patch) | |
tree | 90547d4892aa217a58408b3353fe943dcc51bb7b /src/game/MiscHandler.cpp | |
parent | 811eee356ddd3c0b486a828b39822daffd8ac97e (diff) |
*Add some distance check functions. By VladimirMangos.
--HG--
branch : trunk
Diffstat (limited to 'src/game/MiscHandler.cpp')
-rw-r--r-- | src/game/MiscHandler.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index a75141e2937..5a1f97cdf8c 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -775,9 +775,7 @@ void WorldSession::HandleCorpseReclaimOpcode(WorldPacket &recv_data) if(corpse->GetGhostTime() + GetPlayer()->GetCorpseReclaimDelay(corpse->GetType()==CORPSE_RESURRECTABLE_PVP) > time(NULL)) return; - float dist = corpse->GetDistance2d(GetPlayer()); - sLog.outDebug("Corpse 2D Distance: \t%f",dist); - if (dist > CORPSE_RECLAIM_RADIUS) + if (!corpse->IsWithinDist(GetPlayer(),CORPSE_RECLAIM_RADIUS,false)) return; uint64 guid; |