Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adangert committed Jan 4, 2018
1 parent 4628669 commit 461578c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions joust.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,14 +519,14 @@ def end_game(self):
h_value = 0
self.running = False

def end_game_sound(self, winning_team):
def end_game_sound(self, winning_team):
if self.game_mode == common.Games.WereJoust:
if winning_team == -1:
team_win = Audio('audio/Joust/sounds/werewolf win.wav')
else:
team_win = Audio('audio/Joust/sounds/human win.wav')
team_win.start_effect()
elif self.game_mode != common.Games.JoustFFA or self.game_mode != common.Games.NonStop:
elif self.game_mode != common.Games.JoustFFA and self.game_mode != common.Games.NonStop:
win_team_name = self.team_colors[winning_team].name
if win_team_name == 'Pink':
team_win = Audio('audio/Joust/sounds/human win.wav')
Expand Down

0 comments on commit 461578c

Please sign in to comment.