changeset 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 d5dea97f9a02
children a0d66c0f5a89
files gamelib/state.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)