GetDifficulty and GetMeterRange take an Info.

This commit is contained in:
Glenn Maynard
2003-07-21 22:21:03 +00:00
parent a0230f752a
commit fb0b6ed89e
3 changed files with 13 additions and 6 deletions
+8 -2
View File
@@ -585,9 +585,9 @@ RageColor Course::GetColor() const
}
Difficulty Course::GetDifficulty( int stage ) const
Difficulty Course::GetDifficulty( const Info &stage ) const
{
Difficulty dc = m_entries[stage].difficulty;
Difficulty dc = m_entries[stage.CourseIndex].difficulty;
if(GAMESTATE->m_bDifficultCourses && dc < DIFFICULTY_CHALLENGE)
dc = Difficulty(dc + 1);
@@ -608,6 +608,12 @@ void Course::GetMeterRange( int stage, int& iMeterLowOut, int& iMeterHighOut ) c
}
}
void Course::GetMeterRange( const Info &stage, int& iMeterLowOut, int& iMeterHighOut ) const
{
GetMeterRange( stage.CourseIndex, iMeterLowOut, iMeterHighOut );
}
bool Course::GetTotalSeconds( float& fSecondsOut ) const
{
vector<Info> ci;