mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-12-12 17:21:09 -05:00
A fix requested by Eric
This commit is contained in:
parent
4d81aa0fe6
commit
c8caeb42de
1 changed files with 12 additions and 2 deletions
|
@ -2959,11 +2959,16 @@ class PlayState extends MusicBeatSubState
|
|||
FunkinSound.playOnce(Paths.sound('Lights_Shut_off'), function() {
|
||||
// no camFollow so it centers on horror tree
|
||||
var targetSong:Song = SongRegistry.instance.fetchEntry(targetSongId);
|
||||
var targetVariation:String = currentVariation;
|
||||
if (!targetSong.hasDifficulty(PlayStatePlaylist.campaignDifficulty, currentVariation))
|
||||
{
|
||||
targetVariation = targetSong.getFirstValidVariation(PlayStatePlaylist.campaignDifficulty) ?? Constants.DEFAULT_VARIATION;
|
||||
}
|
||||
LoadingState.loadPlayState(
|
||||
{
|
||||
targetSong: targetSong,
|
||||
targetDifficulty: PlayStatePlaylist.campaignDifficulty,
|
||||
targetVariation: targetSong.getFirstValidVariation(PlayStatePlaylist.campaignDifficulty),
|
||||
targetVariation: targetVariation,
|
||||
cameraFollowPoint: cameraFollowPoint.getPosition(),
|
||||
});
|
||||
});
|
||||
|
@ -2971,11 +2976,16 @@ class PlayState extends MusicBeatSubState
|
|||
else
|
||||
{
|
||||
var targetSong:Song = SongRegistry.instance.fetchEntry(targetSongId);
|
||||
var targetVariation:String = currentVariation;
|
||||
if (!targetSong.hasDifficulty(PlayStatePlaylist.campaignDifficulty, currentVariation))
|
||||
{
|
||||
targetVariation = targetSong.getFirstValidVariation(PlayStatePlaylist.campaignDifficulty) ?? Constants.DEFAULT_VARIATION;
|
||||
}
|
||||
LoadingState.loadPlayState(
|
||||
{
|
||||
targetSong: targetSong,
|
||||
targetDifficulty: PlayStatePlaylist.campaignDifficulty,
|
||||
targetVariation: targetSong.getFirstValidVariation(PlayStatePlaylist.campaignDifficulty),
|
||||
targetVariation: targetVariation,
|
||||
cameraFollowPoint: cameraFollowPoint.getPosition(),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue