From c1b8757719e0dec3ef0952d40cbede2fcd07831c Mon Sep 17 00:00:00 2001 From: DKNorad Date: Thu, 18 Apr 2024 18:12:20 +0300 Subject: [PATCH] Fix a bug where the 'game over' SFX plays even though the SFX are disabled. --- entities/Mario.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entities/Mario.py b/entities/Mario.py index 8321284c..2ac6a9b5 100644 --- a/entities/Mario.py +++ b/entities/Mario.py @@ -154,7 +154,7 @@ def gameOver(self): srf.set_colorkey((255, 255, 255), pygame.RLEACCEL) srf.set_alpha(128) self.sound.music_channel.stop() - self.sound.music_channel.play(self.sound.death) + self.sound.play_sfx(self.sound.death) for i in range(500, 20, -2): srf.fill((0, 0, 0))