mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-02-17 04:11:23 -05:00
don't play game over music if already ending
This commit is contained in:
parent
ece27cd23a
commit
e005ac382c
1 changed files with 4 additions and 2 deletions
|
@ -111,7 +111,8 @@ class GameOverSubstate extends MusicBeatSubstate
|
||||||
|
|
||||||
FlxG.sound.play(Paths.sound('jeffGameover/jeffGameover-' + randomGameover), 1, false, null, true, function()
|
FlxG.sound.play(Paths.sound('jeffGameover/jeffGameover-' + randomGameover), 1, false, null, true, function()
|
||||||
{
|
{
|
||||||
FlxG.sound.music.fadeIn(4, 0.2, 1);
|
if (!isEnding)
|
||||||
|
FlxG.sound.music.fadeIn(4, 0.2, 1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
@ -130,7 +131,8 @@ class GameOverSubstate extends MusicBeatSubstate
|
||||||
|
|
||||||
private function coolStartDeath(?vol:Float = 1):Void
|
private function coolStartDeath(?vol:Float = 1):Void
|
||||||
{
|
{
|
||||||
FlxG.sound.playMusic(Paths.music('gameOver' + stageSuffix), vol);
|
if (!isEnding)
|
||||||
|
FlxG.sound.playMusic(Paths.music('gameOver' + stageSuffix), vol);
|
||||||
}
|
}
|
||||||
|
|
||||||
override function beatHit()
|
override function beatHit()
|
||||||
|
|
Loading…
Reference in a new issue