diff --git a/Common/GeneralMath.inl b/Common/GeneralMath.inl index 61b1a76..998c4c1 100644 --- a/Common/GeneralMath.inl +++ b/Common/GeneralMath.inl @@ -49,6 +49,9 @@ bool math::LineIntersectsCircle(const sf::Vector2 & p1, const sf::Vector2 (p1.y > (p_pos.y + p_radius) && p2.y > (p_pos.y + p_radius))) { return false; + }else if (distance(p1, p_pos) <= p_radius || distance(p2, p_pos) <= p_radius) + { + return true; } /*