changeset 757:8ac05c038e73 pyntnclick

Turn a FIXME around thing rect handling into a TODO entry
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 26 Jan 2013 12:30:17 +0200
parents bd8227068d86
children f4853f817a7a
files TODO pyntnclick/state.py
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/TODO	Sat Jan 26 12:18:49 2013 +0200
+++ b/TODO	Sat Jan 26 12:30:17 2013 +0200
@@ -7,6 +7,8 @@
 Cleanups:
   * Clean-up finding and loading of speech strings.
   * Fix thing.enter being called multiple times without leaving
+  * Things have lists of rects or a single rect in the rect attribute. This
+    should be refactored for sanity.
 
 Hints:
   * More help with the starting puzzle (another interactable cryo-chamber?)
--- a/pyntnclick/state.py	Sat Jan 26 12:18:49 2013 +0200
+++ b/pyntnclick/state.py	Sat Jan 26 12:30:17 2013 +0200
@@ -456,7 +456,6 @@
         if hasattr(self.rect, 'collidepoint'):
             return self.rect.collidepoint(pos)
         else:
-            # FIXME: add sanity check
             for rect in list(self.rect):
                 if rect.collidepoint(pos):
                     return True