From c3bbe85c1f86e4aaff94399c69177188f18005e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Tue, 19 Dec 2017 12:00:47 +0100 Subject: [PATCH] Fixed medley songs in PartyModeChallenge --- PartyModes/PartyModeChallenge/CPartyModeChallenge.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PartyModes/PartyModeChallenge/CPartyModeChallenge.cs b/PartyModes/PartyModeChallenge/CPartyModeChallenge.cs index 5f864d14..d59f4ed8 100644 --- a/PartyModes/PartyModeChallenge/CPartyModeChallenge.cs +++ b/PartyModes/PartyModeChallenge/CPartyModeChallenge.cs @@ -205,7 +205,6 @@ namespace VocaluxeLib.PartyModes.Challenge { if (!base.Init()) return false; - _Stage = EStage.Config; SetDefaults(); return true; @@ -556,11 +555,15 @@ namespace VocaluxeLib.PartyModes.Challenge break; case ESongSource.TR_SONGSOURCE_CATEGORY: + ESongSorting oldSorting = CBase.Config.GetSongSorting(); + CBase.Songs.SortSongs(GameData.Sorting, EOffOn.TR_CONFIG_ON, CBase.Config.GetIgnoreArticles() ,String.Empty, EDuetOptions.NoDuets, -1); + CBase.Songs.SetCategory(GameData.CategoryIndex); avSongs = CBase.Songs.GetVisibleSongs(); GameData.Songs.AddRange(avSongs.Where(song => song.AvailableGameModes.Contains(EGameMode.TR_GAMEMODE_MEDLEY)).Select(song => song.ID)); CBase.Songs.SetCategory(-1); + CBase.Songs.SortSongs(oldSorting, CBase.Config.GetTabs(), CBase.Config.GetIgnoreArticles(), String.Empty, EDuetOptions.NoDuets, -1); break; } GameData.Songs.Shuffle();