From 903b3fc59905a70802618a1cd67407722ea956ed Mon Sep 17 00:00:00 2001 From: Kolo <67389779+JustKolosaki@users.noreply.github.com> Date: Sat, 5 Oct 2024 10:29:26 +0200 Subject: [PATCH] fix: Don't restart the FreeplayState song preview when changing the difficulty within the same variation pulled from the wrong branch, oops! last update i hope wrong spellings im gonna kms --- source/funkin/ui/freeplay/FreeplayState.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index 507c447588..351de6b977 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -1689,6 +1689,7 @@ class FreeplayState extends MusicBeatSubState function changeDiff(change:Int = 0, force:Bool = false):Void { touchTimer = 0; + var previousVariation:String = currentVariation; // Available variations for current character. We get this since bf is usually `default` variation, and `pico` is `pico` // but sometimes pico can be the default variation (weekend 1 songs), and bf can be `bf` variation (darnell) @@ -1784,7 +1785,7 @@ class FreeplayState extends MusicBeatSubState } // Reset the song preview in case we changed variations (normal->erect etc) - playCurSongPreview(); + if (currentVariation != previousVariation) playCurSongPreview(); } // Set the album graphic and play the animation if relevant.