diff options
author | megamage <none@none> | 2008-12-29 17:27:50 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-29 17:27:50 -0600 |
commit | f70d5a22c7efdef6caab5d9ddf433d689e5f0dbc (patch) | |
tree | 1d600a20630e92f7fe848abdc87b9f48c6dd15b6 /src/game/Object.h | |
parent | 35ce5ca6ba2ac8f0a70049cca652a541f2e10bec (diff) |
*Update to Mangos 6982.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.h')
-rw-r--r-- | src/game/Object.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index 6b98f50bc65..f943d0f3d21 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -428,7 +428,7 @@ class TRINITY_DLL_SPEC WorldObject : public Object float GetDistance2d(const WorldObject* obj) const; 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 IsInMap(const WorldObject* obj) const { return IsInWorld() && obj->IsInWorld() && GetMapId()==obj->GetMapId() && GetInstanceId()==obj->GetInstanceId(); } 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; |