Skip to content

Commit

Permalink
Stopping sounds when muted
Browse files Browse the repository at this point in the history
  • Loading branch information
aosyborg committed Oct 16, 2011
1 parent fd5c332 commit 798bd15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game/sounds.py
Expand Up @@ -36,3 +36,5 @@ def flush(self):

def toggleSound(self):
self.mute = not self.mute
if self.mute:
pygame.mixer.stop()

0 comments on commit 798bd15

Please sign in to comment.