diff gamelib/state.py @ 311:00eb7ea2b7ea

Make self._interact_hilight_colour = None disable rect (matches comments)
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 28 Aug 2010 08:56:12 +0200
parents 75783238f73d
children 40dd77f71e11
line wrap: on
line diff
--- a/gamelib/state.py	Sat Aug 28 02:06:33 2010 +0200
+++ b/gamelib/state.py	Sat Aug 28 08:56:12 2010 +0200
@@ -461,7 +461,7 @@
             self.current_interact.rect = old_rect.move(self.scene.OFFSET)
         self.current_interact.draw(surface)
         self.current_interact.rect = old_rect
-        if DEBUG_RECTS:
+        if DEBUG_RECTS and self._interact_hilight_color:
             if hasattr(self.rect, 'collidepoint'):
                 frame_rect(surface, self._interact_hilight_color,
                         self.rect.inflate(1, 1), 1)