Skip to content

Commit

Permalink
fix game end sound
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Müller 🚀 <code@brauser.io>
  • Loading branch information
Flipez committed Jan 13, 2020
1 parent 2f99dc4 commit a79865c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ func gameEnd(winner string) {

game, _ := json.Marshal(Game{Winner: winner, Time: time.Since(gameStartTime).Seconds()})
publish("game/end", string(game), false)
publish("sound/play", "end", false)

resetScore()
clearAll()
Expand Down

0 comments on commit a79865c

Please sign in to comment.