grade constant cleanup

add LuaGrade
This commit is contained in:
Chris Danford
2005-03-31 02:06:24 +00:00
parent 9ee7d3f5c0
commit b29790f307
13 changed files with 67 additions and 53 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ void SongUtil::SortSongPointerArrayByGrade( vector<Song*> &arraySongPointers )
CString foo;
foo.reserve(256);
for( int g=GRADE_TIER_1; g<=GRADE_NO_DATA; ++g )
for( int g=GRADE_TIER_01; g<=GRADE_NO_DATA; ++g )
AppendOctal( iCounts[g], 3, foo );
vals.push_back( val(pSong, foo) );
}
@@ -261,7 +261,7 @@ CString SongUtil::GetSectionNameFromSongAndSort( const Song* pSong, SortOrder so
int iCounts[NUM_GRADES];
PROFILEMAN->GetMachineProfile()->GetGrades( pSong, GAMESTATE->GetCurrentStyle()->m_StepsType, iCounts );
for( int i=GRADE_TIER_1; i<NUM_GRADES; ++i )
for( int i=GRADE_TIER_01; i<NUM_GRADES; ++i )
{
Grade g = (Grade)i;
if( iCounts[i] > 0 )