blank m_sNoteSkin mean "no change in NoteSkin". Don't hardcode the NoteSkin "default" everywhere because "default" is not guaranteed to exist.

This commit is contained in:
Chris Danford
2006-02-22 17:15:13 +00:00
parent 7da80cdaa2
commit 0e12a206f4
3 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -1016,6 +1016,8 @@ void GameState::GetDefaultPlayerOptions( PlayerOptions &po )
po.Init();
po.FromString( PREFSMAN->m_sDefaultModifiers );
po.FromString( CommonMetrics::DEFAULT_MODIFIERS );
if( po.m_sNoteSkin.empty() )
po.m_sNoteSkin = "default";
}
void GameState::GetDefaultSongOptions( SongOptions &so )
@@ -1106,7 +1108,8 @@ void GameState::GetAllUsedNoteSkins( vector<RString> &out ) const
{
PlayerOptions po;
po.FromString( e->Modifiers );
out.push_back( po.m_sNoteSkin );
if( !po.m_sNoteSkin.empty() )
out.push_back( po.m_sNoteSkin );
}
}
}