Added BPMRANGE song option for Courses.

Started breaking out some of the logic in CourseLoaderCRS into smaller functions for readibility.
This commit is contained in:
Michael Votaw
2024-03-06 01:45:26 -08:00
committed by teejusb
parent 93f27a4ae2
commit f44357c3f5
4 changed files with 252 additions and 204 deletions
+10
View File
@@ -68,6 +68,16 @@ bool SongCriteria::Matches( const Song *pSong ) const
if( m_iMaxStagesForSong != -1 && GAMESTATE->GetNumStagesMultiplierForSong(pSong) > m_iMaxStagesForSong )
return false;
if( m_fMaxBPM != -1 && pSong->m_fSpecifiedBPMMax > m_fMaxBPM )
{
return false;
}
if( m_fMinBPM != -1 && pSong->m_fSpecifiedBPMMin < m_fMinBPM )
{
return false;
}
switch( m_Tutorial )
{
DEFAULT_FAIL(m_Tutorial);