GetDifficulty and GetMeterRange take an Info.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user