mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-15 03:13:45 +00:00
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
This commit is contained in:
parent
0d60929f18
commit
903b3fc599
|
@ -1689,6 +1689,7 @@ class FreeplayState extends MusicBeatSubState
|
||||||
function changeDiff(change:Int = 0, force:Bool = false):Void
|
function changeDiff(change:Int = 0, force:Bool = false):Void
|
||||||
{
|
{
|
||||||
touchTimer = 0;
|
touchTimer = 0;
|
||||||
|
var previousVariation:String = currentVariation;
|
||||||
|
|
||||||
// Available variations for current character. We get this since bf is usually `default` variation, and `pico` is `pico`
|
// 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)
|
// 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)
|
// 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.
|
// Set the album graphic and play the animation if relevant.
|
||||||
|
|
Loading…
Reference in a new issue