Skip to content

Commit

Permalink
Merge branch 'rewrite/master' into week2-erect-bg-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjamuffin99 committed Sep 10, 2024
2 parents ee78178 + f6bd203 commit 96657e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/funkin/ui/freeplay/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1985,6 +1985,12 @@ class FreeplayState extends MusicBeatSubState
return;
}

if (targetInstId == null)
{
var baseInstrumentalId:String = targetSong?.getBaseInstrumentalId(targetDifficultyId, targetDifficulty.variation ?? Constants.DEFAULT_VARIATION) ?? '';
targetInstId = baseInstrumentalId;
}

// Visual and audio effects.
FunkinSound.playOnce(Paths.sound('confirmMenu'));
if (dj != null) dj.confirm();
Expand Down Expand Up @@ -2409,6 +2415,7 @@ class DifficultySprite extends FlxSprite
if (assetDiffIdParts.length == 0) break;
assetDiffId = assetDiffIdParts.join('-');
}
trace('Found difficulty asset: freeplay/freeplay${assetDiffId}');

// Check for an XML to use an animation instead of an image.
if (Assets.exists(Paths.file('images/freeplay/freeplay${assetDiffId}.xml')))
Expand Down

0 comments on commit 96657e9

Please sign in to comment.