Browse Source

Don't play if we're already playing

main
Luke Murphy 4 years ago
parent
commit
fa710a7f98
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      voicegardens/static/voicegardens.js

2
voicegardens/static/voicegardens.js

@ -376,7 +376,7 @@ class GeneratedShape {
/**
* Play a sound after a collision is detected.
**/
if (this.soundRecorded.isLoaded()) {
if (this.soundRecorded.isLoaded() && !this.soundRecorded.isPlaying()) {
this.soundRecorded.play();
}
}

Loading…
Cancel
Save