From: Simon Cross Date: Sat, 10 Sep 2016 17:42:17 +0000 (+0200) Subject: Use pre-created LIT_BY filter. X-Git-Tag: tabakrolletjie-v1.0.0~64 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=637ad9363cfebf6fb1785807d64d769442637826;p=tabakrolletjie.git Use pre-created LIT_BY filter. --- diff --git a/tabakrolletjie/lights.py b/tabakrolletjie/lights.py index 27f349e..d9f2b2b 100644 --- a/tabakrolletjie/lights.py +++ b/tabakrolletjie/lights.py @@ -66,7 +66,7 @@ class LightManager(object): surface = pygame.display.get_surface() pos = pymunk.pygame_util.from_pygame(pos, surface) point_info_list = self._space.point_query( - pos, max_distance, pymunk.ShapeFilter(mask=LIGHT_CATEGORY)) + pos, max_distance, LIT_BY_FILTER) lights = [p.shape.body.light for p in point_info_list] return [ light for light in lights