Infinite loops are bad.
This commit is contained in:
parent
e7caff3d0f
commit
9997b684ca
@ -330,7 +330,7 @@ def pause_game():
|
||||
|
||||
while True:
|
||||
event = pygame.event.wait()
|
||||
if event.type == pygame.KEYDOWN and not event.key == pygame.K_BACKSPACE: continue
|
||||
if event.type == pygame.KEYDOWN and event.key == pygame.K_BACKSPACE: break
|
||||
try:
|
||||
pygame.mixer.unpause()
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user