[7564] fixed WorldObject::HasInArc(): must return true if testing self Author: fgenesis

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-28 16:36:54 -06:00
parent 4797684f3b
commit b72b2a2f5e

View File

@@ -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