Ignore auto set style when filtering songs for the music wheel in online mode.

This commit is contained in:
Kyzentun Keeslala
2016-06-29 15:36:48 -06:00
parent 2f39442ccd
commit 8a7b1d407a
+6 -1
View File
@@ -8,6 +8,7 @@
#include "RageLog.h"
#include "GameState.h"
#include "ThemeManager.h"
#include "NetworkSyncManager.h"
#include "Song.h"
#include "Course.h"
#include "Steps.h"
@@ -474,7 +475,11 @@ void MusicWheel::GetSongList( vector<Song*> &arraySongs, SortOrder so )
}
else
{
if(CommonMetrics::AUTO_SET_STYLE)
// Online mode doesn't support auto set style. A song that only has
// dance-double steps will show up when dance-single was selected, with
// no playable steps. Then the game will crash when trying to play it.
// -Kyz
if(CommonMetrics::AUTO_SET_STYLE && !NSMAN->isSMOnline)
{
// with AUTO_SET_STYLE on and Autogen off, some songs may get
// hidden. Search through every playable StepsType until you