const
This commit is contained in:
@@ -403,12 +403,12 @@ RageColor SongManager::GetGroupColor( const CString &sGroupName )
|
||||
return g_GroupColors[i%NUM_GROUP_COLORS];
|
||||
}
|
||||
|
||||
RageColor SongManager::GetSongColor( Song* pSong )
|
||||
RageColor SongManager::GetSongColor( const Song* pSong )
|
||||
{
|
||||
ASSERT( pSong );
|
||||
for( unsigned i=0; i<pSong->m_apNotes.size(); i++ )
|
||||
{
|
||||
Notes* pNotes = pSong->m_apNotes[i];
|
||||
const Notes* pNotes = pSong->m_apNotes[i];
|
||||
if( pNotes->m_iMeter == 10 )
|
||||
return EXTRA_COLOR;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
CString GetGroupBannerPath( CString sGroupName );
|
||||
void GetGroupNames( CStringArray &AddTo );
|
||||
RageColor GetGroupColor( const CString &sGroupName );
|
||||
RageColor GetSongColor( Song* pSong );
|
||||
RageColor GetSongColor( const Song* pSong );
|
||||
|
||||
static CString ShortenGroupName( const CString &sOrigGroupName );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user