Take into account the confirm sound's length when fading out in the Game Over screen

This commit is contained in:
AbnormalPoof
2025-10-07 20:08:51 -05:00
committed by Abnormal
parent cdb3acc691
commit 99ad396fa3
+5 -1
View File
@@ -377,8 +377,12 @@ class GameOverSubState extends MusicBeatSubState
boyfriend.playAnimation('deathConfirm' + animationSuffix, true);
}
// confirm music length divided by 7000
// this is here so mods with longer confirm sounds don't have it cut off!!!
final FADE_TIMER:Float = (gameOverMusic?.length ?? 0) / 7000;
// After the animation finishes...
new FlxTimer().start(0.7, function(tmr:FlxTimer) {
new FlxTimer().start(FADE_TIMER, function(tmr:FlxTimer) {
// ...fade out the graphics. Then after that happens...
var resetPlaying = function(pixel:Bool = false) {