Permalink
Browse files

Aritmetica: toca som de resposta correta

  • Loading branch information...
1 parent a2ac3f4 commit d2b7d4251ef0ba10a5c1168a042834806ef2d1c8 @felipesanches felipesanches committed Jun 28, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 simulador/pensebem.js
@@ -378,9 +378,10 @@ Operacao = {
Som.playSong(Songs.Wrong);
}
} else {
- Som.playSong(Som.CorrectSong);
- Aritmetica.points += PB.pointsByNumberOfTries(Aritmetica.tries);
- Aritmetica.advanceQuestion();
+ Som.playSong(Songs.Correct, function(){
+ Aritmetica.points += PB.pointsByNumberOfTries(Aritmetica.tries);
+ Aritmetica.advanceQuestion();
+ });
}
break;
default:

0 comments on commit d2b7d42

Please sign in to comment.