From b6837bf1da2e06a0d9b30dcad10ed067de01906f Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Sep 2016 14:38:29 +0200 Subject: [PATCH] Check correct distance --- tabakrolletjie/rays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.34.1