From 7bc30838559ef91eebfbc503b62fe57e39edb3e2 Mon Sep 17 00:00:00 2001 From: Tom Rothamel Date: Tue, 3 Apr 2018 21:16:50 -0400 Subject: [PATCH] Revert "Fixed LayeredUpdates.get_sprites_at(pos) by passing a list of Rects" --- src/pygame_sdl2/sprite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pygame_sdl2/sprite.py b/src/pygame_sdl2/sprite.py index 71cb76c..9d034d1 100644 --- a/src/pygame_sdl2/sprite.py +++ b/src/pygame_sdl2/sprite.py @@ -785,7 +785,7 @@ def get_sprites_at(self, pos): """ _sprites = self._spritelist rect = Rect(pos, (0, 0)) - colliding_idx = rect.collidelistall([sprite.rect for sprite in _sprites]) + colliding_idx = rect.collidelistall(_sprites) colliding = [_sprites[i] for i in colliding_idx] return colliding