changeset 818:8b4a0aad8aeb pyntnclick

Remove unneeded rect union code
author Neil Muller <neil@dip.sun.ac.za>
date Mon, 28 Jan 2013 15:46:22 +0200
parents beac13c4e982
children 80ff3c9187bc
files pyntnclick/scenewidgets.py
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/pyntnclick/scenewidgets.py	Sun Jan 27 22:20:40 2013 +0200
+++ b/pyntnclick/scenewidgets.py	Mon Jan 28 15:46:22 2013 +0200
@@ -55,13 +55,8 @@
 class InteractRectUnion(Interact):
 
     def __init__(self, rect_list):
-        # pygame.rect.Rect.unionall should do this, but is broken
-        # in some pygame versions (including 1.8, it appears)
+        super(InteractRectUnion, self).__init__(None, None, None)
         rect_list = [Rect(x) for x in rect_list]
-        union_rect = rect_list[0]
-        for rect in rect_list[1:]:
-            union_rect = union_rect.union(rect)
-        super(InteractRectUnion, self).__init__(None, None, union_rect)
         self.interact_rect = rect_list