Merge branch 'rewrite/master' into bugfix/doppel-random

This commit is contained in:
Cameron Taylor 2024-09-09 23:50:00 -04:00
commit 06389cb5cd
2 changed files with 1 additions and 17 deletions

View file

@ -46,7 +46,7 @@
"name": "flxanimate",
"type": "git",
"dir": null,
"ref": "280d1a46ac60021d08bb18181631cbd6d061782c",
"ref": "0654797e5eb7cd7de0c1b2dbaa1efe5a1e1d9412",
"url": "https://github.com/Dot-Stuff/flxanimate"
},
{

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();