# HG changeset patch # User Neil Muller # Date 1259450814 0 # Node ID 066b85a7f1cf900ea72e0b124df6474ef049b9b6 # Parent b6f42a09945d7901b7b4b5b0994c99c9018eea90 Add check on background music as well diff -r b6f42a09945d -r 066b85a7f1cf gamelib/main.py --- a/gamelib/main.py Sat Nov 28 23:19:56 2009 +0000 +++ b/gamelib/main.py Sat Nov 28 23:26:54 2009 +0000 @@ -49,8 +49,10 @@ if sound.SOUND_INITIALIZED: try: sound.play_sound('silence.ogg') + sound.background_music('silence.ogg') except pygame.error: complaint_dialog('Error trying to play sound. Please run with --no-sound') + sound.stop_background_music() def main(): """Main script."""