Partial fix for music wheel woes.

This commit is contained in:
Jason Felds
2012-01-08 21:39:58 -05:00
parent c1c63611ef
commit e73d3c33c3
+8 -1
View File
@@ -982,6 +982,13 @@ void MusicWheel::FilterWheelItemDatas(vector<MusicWheelItemData *> &aUnFilteredD
aiRemove[i] = true;
continue;
}
// if AutoSetStyle, make sure the song is playable in the end.
if (CommonMetrics::AUTO_SET_STYLE && !SongUtil::IsSongPlayable(pSong))
{
aiRemove[i] = true;
continue;
}
}
if( WID.m_Type == WheelItemDataType_Course )
@@ -1506,7 +1513,7 @@ void MusicWheel::PlayerJoined()
{
if(m_WheelItemDatasStatus[GAMESTATE->m_SortOrder]!=INVALID)
m_WheelItemDatasStatus[GAMESTATE->m_SortOrder]=NEEDREFILTER;
RebuildWheelItems();
}