1
Fork 0

Flipped sound logic

This commit is contained in:
Jake Howard 2015-05-13 09:31:32 +01:00
parent 51f8d3e4eb
commit 42d74daaf8
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def play(window, options):
return "QUIT"
if event.type == pygame.KEYDOWN and event.key in [pygame.K_SPACE, pygame.K_w, pygame.K_UP] and not fired:
if not player.options["Sounds"]: Sounds["shot"].play()
if player.options["Sounds"]: Sounds["shot"].play()
temp = Bullet(player, player.options["Textures"])
bullet_group.add(temp)
fired = True