diff --git a/level/Transition.js b/level/Transition.js index f09ccbe..6458246 100644 --- a/level/Transition.js +++ b/level/Transition.js @@ -24,7 +24,7 @@ Transition = function(level, position, bbox, destination) { var stage = LevelDatabase[destination.stage]; if (stage.music && stage.music != Music.current) { - Music.fade(666); + Music.fadeout(666); } } } diff --git a/main/Music.js b/main/Music.js index 83f2298..2a33c7e 100644 --- a/main/Music.js +++ b/main/Music.js @@ -42,6 +42,7 @@ Music = (function() { if (currentMusic.volume <= 0) { currentMusic.stop(); currentMusic.destroy(); + currentMusic = undefined; return; }