Merge branch 'master' of ctpug.org.za:tabakrolletjie
authorSimon Cross <hodgestar@gmail.com>
Fri, 9 Sep 2016 21:40:21 +0000 (23:40 +0200)
committerSimon Cross <hodgestar@gmail.com>
Fri, 9 Sep 2016 21:40:21 +0000 (23:40 +0200)
1  2 
tabakrolletjie/lights.py

index d20ab3570663ba1132345d1f093aea8b9b7985ce,2ab02b6e91061469ce58c81af4deaeb2c5bcf58b..2952da5c86680eada28d63130e425bf017179e87
@@@ -96,10 -101,7 +101,10 @@@ class BaseLight(object)
          "white": (255, 255, 255),
      }
  
 +    # defaults
 +    RAY_MANAGER = RayPolyManager
      FITTING_IMG = None
-     FITTING_RADIUS = 10.0
++    FITTING_RADIUS = 24.0
  
      # cached surfaces
      _surface_cache = {}
          return self._image
  
      def render_fitting(self, surface):
 -        rx, ry = pymunk.pygame_util.to_pygame(self.position, surface)
 +        rx, ry = self.ray_manager.pygame_position(surface)
-         surface.blit(self.get_image(), (rx - 32, ry - 32), None, 0)
+         surface.blit(self.get_image(), (rx - 24, ry - 24), None, 0)
  
      def tick(self):
          pass