From a1a116ee036928d6bce25e22dd3b3aa0c320f428 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 26 Nov 2019 20:03:25 -0500 Subject: [PATCH] Fixed misbehaving menu. --- numnastics | 1 + storm_games.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/numnastics b/numnastics index 070581d..0b57f43 100755 --- a/numnastics +++ b/numnastics @@ -8,6 +8,7 @@ mode = "menu" sounds = initialize_gui("Numnastics") def game(mode): + pygame.mixer.music.pause() i = 0 startTime = time.time() tries = 0 diff --git a/storm_games.py b/storm_games.py index e7d15a0..9392e3b 100755 --- a/storm_games.py +++ b/storm_games.py @@ -136,10 +136,10 @@ def game_menu(*options): if event.key == pygame.K_ESCAPE: exit_game() if event.key == pygame.K_DOWN and i < len(options) - 1: i = i + 1 - pygame.mixer.music.unpause() + if options[i] != "donate": pygame.mixer.music.unpause() if event.key == pygame.K_UP and i > 0: i = i - 1 - pygame.mixer.music.unpause() + if options[i] != "donate": pygame.mixer.music.unpause() if event.key == pygame.K_RETURN: try: eval(options[i] + "()")