Skip to content

Commit

Permalink
Ensure no more than 1 rickroll
Browse files Browse the repository at this point in the history
<bug
  • Loading branch information
TimYuenior committed Oct 30, 2015
1 parent 56301b3 commit 0a5fb5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/bejeweled/Sounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public void stopBackgroundSound() {
* Plays the background sound effect.
*/
public void playRickRoll() {
rickrollSound.play();
if(!rickrollSound.isPlaying()) {
rickrollSound.play();
}
}

/**
Expand Down

0 comments on commit 0a5fb5a

Please sign in to comment.