A few fadeout-related fixes
This commit is contained in:
parent
59fcd198e7
commit
f3386fd7a2
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,7 @@ Music = (function() {
|
|||
if (currentMusic.volume <= 0) {
|
||||
currentMusic.stop();
|
||||
currentMusic.destroy();
|
||||
currentMusic = undefined;
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue