Skip to content

Commit

Permalink
fix: Don't restart the FreeplayState song preview when changing the d…
Browse files Browse the repository at this point in the history
…ifficulty within the same variation

pulled from the wrong branch, oops!

last update i hope

wrong spellings im gonna kms
  • Loading branch information
KoloInDaCrib authored and ninjamuffin99 committed Oct 8, 2024
1 parent 0d60929 commit 903b3fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/funkin/ui/freeplay/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 903b3fc

Please sign in to comment.