A few fadeout-related fixes

This commit is contained in:
RedEnchilada 2016-05-14 16:54:35 -05:00
parent 59fcd198e7
commit f3386fd7a2
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}
}
}

View file

@ -42,6 +42,7 @@ Music = (function() {
if (currentMusic.volume <= 0) {
currentMusic.stop();
currentMusic.destroy();
currentMusic = undefined;
return;
}