fix non-fixed songs not showing in blue on average foot rating sort

This commit is contained in:
Andrew Wong
2003-08-12 20:28:56 +00:00
parent 1913fddee0
commit 0ff630ce69
2 changed files with 16 additions and 2 deletions
+14 -2
View File
@@ -651,7 +651,7 @@ RageColor Course::GetColor() const
break; break;
case PrefsManager::COURSE_SORT_METER: case PrefsManager::COURSE_SORT_METER:
if (GetMeter() > 100) if ( !IsFixed() )
return RageColor(0,0,1,1); // blue return RageColor(0,0,1,1); // blue
if (GetMeter() > 8.5) if (GetMeter() > 8.5)
return RageColor(1,0,0,1); // red return RageColor(1,0,0,1); // red
@@ -662,7 +662,7 @@ RageColor Course::GetColor() const
return RageColor(0,1,0,1); // green return RageColor(0,1,0,1); // green
case PrefsManager::COURSE_SORT_METER_SUM: case PrefsManager::COURSE_SORT_METER_SUM:
if (SortOrder_TotalDifficulty > 100000) if ( !IsFixed() )
return RageColor(0,0,1,1); // blue return RageColor(0,0,1,1); // blue
if (SortOrder_TotalDifficulty >= 40) if (SortOrder_TotalDifficulty >= 40)
return RageColor(1,0,0,1); // red return RageColor(1,0,0,1); // red
@@ -686,6 +686,18 @@ RageColor Course::GetColor() const
} }
} }
bool Course::IsFixed() const
{
for(unsigned i = 0; i < m_entries.size(); i++)
{
if ( m_entries[i].type == COURSE_ENTRY_FIXED )
continue;
return false;
}
return true;
}
Difficulty Course::GetDifficulty( const Info &stage ) const Difficulty Course::GetDifficulty( const Info &stage ) const
{ {
+2
View File
@@ -123,6 +123,8 @@ public:
PlayMode GetPlayMode() const; PlayMode GetPlayMode() const;
float GetMeter( int Difficult = -1 ) const; float GetMeter( int Difficult = -1 ) const;
bool IsFixed() const;
void LoadFromCRSFile( CString sPath ); void LoadFromCRSFile( CString sPath );
void Save(); void Save();
void AutogenEndlessFromGroup( CString sGroupName, vector<Song*> &apSongsInGroup ); void AutogenEndlessFromGroup( CString sGroupName, vector<Song*> &apSongsInGroup );