From 0deee30dc68dcc98bdcd8d2d8869d5f4235e80ce Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 6 Sep 2002 10:15:00 +0000 Subject: [PATCH] More fallback code. --- stepmania/src/Song.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index 5c8e03a45c..8fb1b81bd2 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1236,8 +1236,11 @@ void Song::TidyUpData() void Song::GetNotesThatMatch( const StyleDef *s, int p, CArray& arrayAddTo ) const { for( int i=0; im_NotesType == s->m_NotesTypes[p] ) + { + if( m_apNotes[i]->m_NotesType == s->m_NotesTypes[p] || + m_apNotes[i]->m_NotesType == s->m_FallbackNotesType ) arrayAddTo.Add( m_apNotes[i] ); + } } /* Return whether the song is playable in the given style. */ @@ -1483,7 +1486,7 @@ Grade Song::GetGradeForDifficultyClass( const StyleDef *st, int p, DifficultyCla for( int i=0; im_DifficultyClass == dc ) return pNotes->m_TopGrade; }