From: Neil Date: Sat, 10 Sep 2016 12:38:29 +0000 (+0200) Subject: Check correct distance X-Git-Tag: tabakrolletjie-v1.0.0~105^2 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=b6837bf1da2e06a0d9b30dcad10ed067de01906f;p=tabakrolletjie.git Check correct distance --- diff --git a/tabakrolletjie/rays.py b/tabakrolletjie/rays.py index 11bfd33..8a79c34 100644 --- a/tabakrolletjie/rays.py +++ b/tabakrolletjie/rays.py @@ -130,7 +130,7 @@ class RayPolyManager(object): self._min_radius = value or 0.0 def reaches(self, position): - distance = self.position.get_distance(self.position) + distance = self.position.get_distance(position) return (self._min_radius <= distance <= self._max_radius) def _set_radius_limits(self, radius_limits):