Skip to content

Commit

Permalink
add retain
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 Nov 21, 2019
1 parent 5f7b16c commit 9c9f2de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func decreaseScore(team string) {
} else if team == "white" {
scoreWhite = int(math.Max(0, float64(scoreWhite-1)))
}
publish("sound/play", "denied")
publish("sound/play", "denied", false)
updateScore()
}

Expand All @@ -64,9 +64,9 @@ func increaseScore(team string) {
}

if (scoreRed + scoreWhite) == 1 {
publish("sound/play", "firstgoal")
publish("sound/play", "firstgoal", false)
} else {
publish("sound/play", "goal")
publish("sound/play", "goal", false)
}

updateScore()
Expand All @@ -75,7 +75,7 @@ func increaseScore(team string) {
func resetScore() {
scoreWhite = 0
scoreRed = 0
publish("sound/play", "start")
publish("sound/play", "start", false)
updateScore()
}

Expand Down

0 comments on commit 9c9f2de

Please sign in to comment.