From 6a39ca4aaa948d169fea70773c93b63b857c63a1 Mon Sep 17 00:00:00 2001 From: Nicholas Dyer Date: Tue, 7 Jan 2025 16:26:31 -0500 Subject: [PATCH] changed super call to match pygame.sprite.Sprite --- steam_saver/surfaces/steam_screen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steam_saver/surfaces/steam_screen.py b/steam_saver/surfaces/steam_screen.py index aa51e9b..256ee7e 100644 --- a/steam_saver/surfaces/steam_screen.py +++ b/steam_saver/surfaces/steam_screen.py @@ -20,7 +20,7 @@ class SteamLogo(pygame.sprite.Sprite): is_mini (bool): Bool to determine whether the logo is a mini (background) logo or not. """ - def __init__(self, window_size: tuple, is_mini: bool = False): + def __init__(self, window_size: tuple, is_mini: bool = False, *groups): """ Initialize SteamLogo sprite with given window size. @@ -28,8 +28,8 @@ class SteamLogo(pygame.sprite.Sprite): window_size (tuple): Size of the game window (width, height). is_mini (bool): Determines if the logo is going to be a background logo (mini) or the foreground one. """ - super().__init__() + super().__init__(*groups) self.is_mini = is_mini # Load and scale original logo image