From 3341713feb17c2469631de0ef6078e5a4473b28c Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 10 Sep 2016 21:45:11 +0200 Subject: [PATCH] Remove unused pos arg. --- tabakrolletjie/rays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabakrolletjie/rays.py b/tabakrolletjie/rays.py index 8a79c34..a475d8f 100644 --- a/tabakrolletjie/rays.py +++ b/tabakrolletjie/rays.py @@ -12,7 +12,7 @@ from .constants import SCREEN_SIZE from .utils import debug_timer -def screen_rays(pos): +def screen_rays(): """ An iterable that returns ordered rays from pos to the edge of the screen, starting with the edge point (0, 0) and continuing clockwise in pymunk coordinates. @@ -40,7 +40,7 @@ def calculate_ray_polys(space, position, light_filter): vertices = [position] start, end = None, None ray_polys = [] - for ray in screen_rays(position): + for ray in screen_rays(): info = space.segment_query_first(position, ray, 1, light_filter) point = ray if info is None else info.point vertices.append(point) -- 2.34.1