Move the expanded section name into GameState

This commit is contained in:
AJ Kelly
2011-08-03 23:56:04 -05:00
parent 0c5f9c2b66
commit ebe832a142
4 changed files with 17 additions and 15 deletions
+1 -6
View File
@@ -222,13 +222,8 @@ void MusicWheelItem::LoadFromWheelItemData( const WheelItemBaseData *pData, int
case TYPE_SECTION:
{
sDisplayName = SONGMAN->ShortenGroupName(pWID->m_sText);
RString sExpandedSectionName;
// TODO: Move the expanded section name into GameState?
ScreenSelectMusic *pScreen = dynamic_cast<ScreenSelectMusic*>(SCREENMAN->GetTopScreen() );
if( pScreen )
sExpandedSectionName = pScreen->GetMusicWheel()->GetExpandedSectionName();
if( sExpandedSectionName == pWID->m_sText )
if( GAMESTATE->sExpandedSectionName == pWID->m_sText )
type = MusicWheelItemType_SectionExpanded;
else
type = MusicWheelItemType_SectionCollapsed;