fix GetPreferredSelectionForRandomOrPortal doesn't obey DifficultiesToRequire

This commit is contained in:
Chris Danford
2005-04-13 08:13:45 +00:00
parent da13d14d51
commit de2daa5410
+5 -2
View File
@@ -1655,10 +1655,13 @@ Song *MusicWheel::GetPreferredSelectionForRandomOrPortal()
FOREACH( Difficulty, vDifficultiesToRequire, d )
if( !pSong->HasStepsTypeAndDifficulty(st,*d) )
continue;
goto try_next;
return wid[iSelection].m_pSong;
try_next:
;
}
FAIL_M( "Couldn't find any songs" );
LOG->Warn( "Couldn't find any songs" );
return wid[0].m_pSong;
}
/*