From 637ad9363cfebf6fb1785807d64d769442637826 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Sat, 10 Sep 2016 19:42:17 +0200 Subject: [PATCH] Use pre-created LIT_BY filter. --- tabakrolletjie/lights.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1