Fix "4..6" ranges never showing up in CourseContentsList. (That's why
iCourseIndex and Course::GetDifficulty existed.)
This commit is contained in:
@@ -775,6 +775,7 @@ void Course::GetTrailUnsorted( StepsType st, CourseDifficulty cd, Trail &trail )
|
||||
te.bMystery = e.mystery;
|
||||
te.iLowMeter = low_meter;
|
||||
te.iHighMeter = high_meter;
|
||||
te.dc = e.difficulty;
|
||||
trail.m_vEntries.push_back( te );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ void CourseEntryDisplay::LoadFromTrailEntry( int iNum, const Course *pCourse, Tr
|
||||
FOREACH_EnabledPlayer(pn)
|
||||
{
|
||||
TrailEntry *te = tes[pn];
|
||||
Difficulty dc = te->pSteps->GetDifficulty();
|
||||
Difficulty dc = te->dc;
|
||||
if( dc == DIFFICULTY_INVALID )
|
||||
{
|
||||
int iLow = te->iLowMeter;
|
||||
|
||||
@@ -23,7 +23,8 @@ struct TrailEntry
|
||||
pSteps(NULL),
|
||||
bMystery(false),
|
||||
iLowMeter(-1),
|
||||
iHighMeter(-1)
|
||||
iHighMeter(-1),
|
||||
dc(DIFFICULTY_INVALID)
|
||||
{
|
||||
}
|
||||
void GetAttackArray( AttackArray &out ) const;
|
||||
@@ -33,8 +34,12 @@ struct TrailEntry
|
||||
CString Modifiers;
|
||||
AttackArray Attacks;
|
||||
bool bMystery;
|
||||
|
||||
/* These represent the meter and difficulty used by the course to pick the
|
||||
* steps; if you want the real difficulty and meter, look at pSteps. */
|
||||
int iLowMeter;
|
||||
int iHighMeter;
|
||||
Difficulty dc;
|
||||
};
|
||||
|
||||
class Trail
|
||||
|
||||
Reference in New Issue
Block a user