diff options
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index b1523072548..03c10e12cfb 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1343,6 +1343,10 @@ void WorldObject::GetSinCos(const float x, const float y, float &vsin, float &vc bool WorldObject::HasInArc(const float arcangle, const WorldObject* obj) const { + // always have self in arc + if(obj == this) + return true; + float arc = arcangle; // move arc to range 0.. 2*pi |