From: Simon Cross Date: Sun, 4 Sep 2016 20:41:44 +0000 (+0200) Subject: Fix flake8 warnings. X-Git-Tag: tabakrolletjie-v1.0.0~245 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=7f10fb40bd02b5048d2086b85e48282662a59be0;p=tabakrolletjie.git Fix flake8 warnings. --- diff --git a/tabakrolletjie/lights.py b/tabakrolletjie/lights.py index ef84879..a22ea14 100644 --- a/tabakrolletjie/lights.py +++ b/tabakrolletjie/lights.py @@ -4,7 +4,6 @@ import pymunk import pymunk.pygame_util import pygame.draw -import pygame.locals as pgl from .constants import SCREEN_SIZE, LIGHT_CATEGORY @@ -93,9 +92,7 @@ class SpotLight(BaseLight): self.i = 0 def shapes_for_ray_polys(self, ray_polys): - x, y = self.position - return ray_polys #+ [ - # pymunk.Poly(self.body, [self.position, [x + 50, y], [x, y + 50]])] + return ray_polys def render(self, surface): subsurface = surface.copy()