mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-01-11 14:48:02 +00:00
Fixed a bug where the instrumental selector would be ignored sometimes
This commit is contained in:
parent
e2c287e112
commit
877d64c32b
|
@ -1985,22 +1985,6 @@ class FreeplayState extends MusicBeatSubState
|
||||||
return;
|
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.
|
// Visual and audio effects.
|
||||||
FunkinSound.playOnce(Paths.sound('confirmMenu'));
|
FunkinSound.playOnce(Paths.sound('confirmMenu'));
|
||||||
if (dj != null) dj.confirm();
|
if (dj != null) dj.confirm();
|
||||||
|
|
Loading…
Reference in a new issue