Fixed a bug with pause game.
This commit is contained in:
parent
db6c34f714
commit
e7caff3d0f
@ -332,12 +332,12 @@ def pause_game():
|
||||
event = pygame.event.wait()
|
||||
if event.type == pygame.KEYDOWN and not event.key == pygame.K_BACKSPACE: continue
|
||||
try:
|
||||
pygame.mixer.pause()
|
||||
pygame.mixer.unpause()
|
||||
except:
|
||||
pass
|
||||
|
||||
try:
|
||||
pygame.mixer.music.pause()
|
||||
pygame.mixer.music.unpause()
|
||||
except:
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user