Add support for #DISPLAYBPM in DWI and SM files

This commit is contained in:
Chris Danford
2003-05-23 01:14:43 +00:00
parent 167cc3aaef
commit 6ee884aed2
10 changed files with 108 additions and 17 deletions
+5 -2
View File
@@ -91,6 +91,9 @@ Song::Song()
m_fFirstBeat = -1;
m_fLastBeat = -1;
m_SelectionDisplay = SHOW_ALWAYS;
m_DisplayBPMType = DISPLAY_ACTUAL;
m_fDisplayBPMMin = 0;
m_fDisplayBPMMax = 0;
}
Song::~Song()
@@ -1070,8 +1073,8 @@ void SortSongPointerArrayByDifficulty( vector<Song*> &arraySongPointers )
bool CompareSongPointersByBPM(const Song *pSong1, const Song *pSong2)
{
float fMinBPM1, fMaxBPM1, fMinBPM2, fMaxBPM2;
pSong1->GetMinMaxBPM( fMinBPM1, fMaxBPM1 );
pSong2->GetMinMaxBPM( fMinBPM2, fMaxBPM2 );
pSong1->GetActualBPM( fMinBPM1, fMaxBPM1 );
pSong2->GetActualBPM( fMinBPM2, fMaxBPM2 );
if( fMaxBPM1 < fMaxBPM2 )
return true;