From: Simon Cross Date: Sat, 10 Sep 2016 19:45:11 +0000 (+0200) Subject: Remove unused pos arg. X-Git-Tag: tabakrolletjie-v1.0.0~49 X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=commitdiff_plain;h=3341713feb17c2469631de0ef6078e5a4473b28c Remove unused pos arg. --- 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)