Browse Source

Fix timing issue

Thomas Dy 11 years ago
parent
commit
eb3a903d9e
1 changed files with 1 additions and 12 deletions
  1. 1 12
      scripts/games/safari.js

+ 1 - 12
scripts/games/safari.js

@@ -399,18 +399,7 @@ function SoundSafari(beatInfo) {
     var delta = dt * 1000;
 
     currentBeats.map(function(beat) {
-      if(beat.repeat) {
-        beat.repeat = false;
-      }
-      else {
-        if(gameTime + delta > nextPlayTime(beat.sound.duration)) {
-          beat.repeat = true;
-        }
-      }
-    });
-
-    currentBeats.map(function(beat) {
-      if(beat.repeat) {
+      if(gameTime + delta > nextPlayTime(beat.info.duration)) {
         if(beat == activeTarget.beat && state.current == 'waiting') {
           state.play();
         }