From acfa0735bf340eae0f678b70ad766512773dc4ec Mon Sep 17 00:00:00 2001 From: Dan Lawrence Date: Tue, 31 Dec 2024 14:50:50 +0000 Subject: [PATCH] rename 'crashed' to 'collided_sprites' --- src_py/sprite.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src_py/sprite.py b/src_py/sprite.py index 1e6f92add7..3e08169555 100644 --- a/src_py/sprite.py +++ b/src_py/sprite.py @@ -1685,12 +1685,12 @@ def spritecollide(sprite, group, dokill, collided=None): """ if collided is not None: - crashed = [ + collided_sprites = [ group_sprite for group_sprite in group if collided(sprite, group_sprite) ] else: sprite_rect_collide = sprite.rect.colliderect - crashed = [ + collided_sprites = [ group_sprite for group_sprite in group if sprite_rect_collide(group_sprite.rect) @@ -1698,7 +1698,7 @@ def spritecollide(sprite, group, dokill, collided=None): if dokill: for group_sprite in crashed: group_sprite.kill() - return crashed + return collided_sprites def groupcollide(groupa, groupb, dokilla, dokillb, collided=None):