aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.h
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2009-12-17 19:09:40 +0100
committern0n4m3 <none@none>2009-12-17 19:09:40 +0100
commit3e133c47865d57816132300df2749b297f97bce0 (patch)
tree306c46fe0dd82f3909f65ef3cfccd3426bc049da /src/game/Object.h
parent6b405c63cc291f979abbb8939dd3b129fa664584 (diff)
[9012] fix crash when achievement is completed and player isn't in world
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.h')
-rw-r--r--src/game/Object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Object.h b/src/game/Object.h
index cc876f1c756..83189f30b23 100644
--- a/src/game/Object.h
+++ b/src/game/Object.h
@@ -548,6 +548,8 @@ class TRINITY_DLL_SPEC WorldObject : public Object, public WorldLocation
bool IsInRange(WorldObject const* obj, float minRange, float maxRange, bool is3D = true) const;
bool IsInRange2d(float x, float y, float minRange, float maxRange) const;
bool IsInRange3d(float x, float y, float z, float minRange, float maxRange) const;
+ bool isInFront(WorldObject const* target,float distance, float arc = M_PI) const;
+ bool isInBack(WorldObject const* target, float distance, float arc = M_PI) const;
bool IsInBetween(const WorldObject *obj1, const WorldObject *obj2, float size = 0) const;