[7827] dd support 2d version for WorldObject::GetDistanceOrder.

This commit is contained in:
VladimirMangos 2009-05-14 20:09:30 +04:00
parent 788cdf9b3a
commit 592db69c0c
3 changed files with 15 additions and 7 deletions

View file

@ -446,7 +446,7 @@ class MANGOS_DLL_SPEC WorldObject : public Object
}
bool IsWithinLOS(float x, float y, float z) const;
bool IsWithinLOSInMap(const WorldObject* obj) const;
bool GetDistanceOrder(WorldObject const* obj1, WorldObject const* obj2) const;
bool GetDistanceOrder(WorldObject const* obj1, WorldObject const* obj2, bool is3D = true) const;
bool IsInRange(WorldObject const* obj, float minRange, float maxRange) const;
bool IsInRange2d(float x, float y, float minRange, float maxRange) const;