From 2ef9205ca2b965eb8bb62ba88932f0c9cdeb9905 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 20 Apr 2003 01:40:40 +0000 Subject: [PATCH] Only show a song as difficult if it's difficult in the current play mode. --- stepmania/src/SongManager.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/stepmania/src/SongManager.cpp b/stepmania/src/SongManager.cpp index 6c41fa9655..6cb0a1e982 100644 --- a/stepmania/src/SongManager.cpp +++ b/stepmania/src/SongManager.cpp @@ -578,9 +578,25 @@ RageColor SongManager::GetGroupColor( const CString &sGroupName ) RageColor SongManager::GetSongColor( const Song* pSong ) { ASSERT( pSong ); + + /* XXX: + * Previously, this matched all notes, which set a song to "extra" if it + * had any 10-foot steps at all, even edits or doubles. + * + * For now, only look at notes for the current note type. This means that + * if a song has 10-foot steps on Doubles, it'll only show up red in Doubles. + * That's not too bad, I think. This will also change it in the song scroll, + * which is a little odd but harmless. + * + * XXX: Once we support edits, ignore them, too. */ + const NotesType nt = GAMESTATE->GetCurrentStyleDef()->m_NotesType; for( unsigned i=0; im_apNotes.size(); i++ ) { const Notes* pNotes = pSong->m_apNotes[i]; + + if(pNotes->m_NotesType != nt) + continue; + if( pNotes->GetMeter() >= 10 ) return EXTRA_COLOR; }