Reduced number of cells (doubled max visibility distance).

Use 2D distance for visibility checks.
This commit is contained in:
tomrus88 2008-12-05 17:42:46 +03:00
parent 9254ca19e6
commit d00a453863
9 changed files with 28 additions and 24 deletions

View file

@ -399,7 +399,7 @@ class MANGOS_DLL_SPEC WorldObject : public Object
float GetDistance2d(const float x, const float y) const;
float GetDistanceZ(const WorldObject* obj) const;
bool IsInMap(const WorldObject* obj) const { return GetMapId()==obj->GetMapId() && GetInstanceId()==obj->GetInstanceId(); }
bool IsWithinDistInMap(const WorldObject* obj, const float dist2compare) const;
bool IsWithinDistInMap(const WorldObject* obj, const float dist2compare, const bool is3D = true) const;
bool IsWithinLOS(const float x, const float y, const float z ) const;
bool IsWithinLOSInMap(const WorldObject* obj) const;