From: Simon Cross Date: Sat, 10 Sep 2016 17:46:51 +0000 (+0200) Subject: Merge branch 'master' of ctpug.org.za:tabakrolletjie X-Git-Tag: tabakrolletjie-v1.0.0~63 X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=commitdiff_plain;h=6747f859deacf27259f4bc3fefdc8b851b183f75;hp=5f31330677d87ce417bda6ad7a2fbfb73b74f015 Merge branch 'master' of ctpug.org.za:tabakrolletjie --- 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