From: Simon Cross Date: Fri, 9 Sep 2016 19:52:04 +0000 (+0200) Subject: Fix rendering artifact by replacing a call to the function which should not be named... X-Git-Tag: tabakrolletjie-v1.0.0~156 X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=commitdiff_plain;h=dbb97d9d422b27da40b336be1854850f515a3868 Fix rendering artifact by replacing a call to the function which should not be named to draw.polygon. --- diff --git a/tabakrolletjie/lights.py b/tabakrolletjie/lights.py index f892a35..108f795 100644 --- a/tabakrolletjie/lights.py +++ b/tabakrolletjie/lights.py @@ -175,7 +175,7 @@ class BaseLight(object): ray_mask.fill(black) for pygame_poly in self.ray_manager.pygame_polys(surface): pygame.draw.polygon(ray_mask, white, pygame_poly, 0) - pygame.draw.aalines(ray_mask, white, True, pygame_poly, 1) + pygame.draw.polygon(ray_mask, white, pygame_poly, 1) dt.lap("ray mask rendered") radius_mask.fill(black)