Only play music for participating gatherers fixes #10

This commit is contained in:
Chris Blanchard 2015-08-27 18:03:44 +01:00
parent 59d4b0a731
commit 397ba7aee8
1 changed files with 3 additions and 2 deletions

View File

@ -551,8 +551,9 @@ var Gather = React.createClass({
console.log(newState)
// Callbacks for new states
if (newState === "election" && previousState === "gathering") {
console.log(soundController);
if (newState === "election"
&& previousState === "gathering"
&& data.currentGatherer) {
soundController.playGatherMusic();
}
},