1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-23 13:48:23 +00:00

Fixed a bug where the instrumental selector would be ignored sometimes

This commit is contained in:
EliteMasterEric 2024-09-09 21:21:50 -04:00
parent e2c287e112
commit 877d64c32b

View file

@ -1985,22 +1985,6 @@ class FreeplayState extends MusicBeatSubState
return;
}
var baseInstrumentalId:String = targetSong?.getBaseInstrumentalId(targetDifficultyId, targetDifficulty.variation ?? Constants.DEFAULT_VARIATION) ?? '';
var altInstrumentalIds:Array<String> = targetSong?.listAltInstrumentalIds(targetDifficultyId,
targetDifficulty.variation ?? Constants.DEFAULT_VARIATION) ?? [];
var targetInstId:String = baseInstrumentalId;
// TODO: Make this a UI element.
#if FEATURE_DEBUG_FUNCTIONS
if (altInstrumentalIds.length > 0 && FlxG.keys.pressed.CONTROL)
{
targetInstId = altInstrumentalIds[0];
}
if (targetInstId == null) targetInstId = baseInstrumentalId;
#end
// Visual and audio effects.
FunkinSound.playOnce(Paths.sound('confirmMenu'));
if (dj != null) dj.confirm();