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.bMystery = e.mystery;
|
||||||
te.iLowMeter = low_meter;
|
te.iLowMeter = low_meter;
|
||||||
te.iHighMeter = high_meter;
|
te.iHighMeter = high_meter;
|
||||||
|
te.dc = e.difficulty;
|
||||||
trail.m_vEntries.push_back( te );
|
trail.m_vEntries.push_back( te );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ void CourseEntryDisplay::LoadFromTrailEntry( int iNum, const Course *pCourse, Tr
|
|||||||
FOREACH_EnabledPlayer(pn)
|
FOREACH_EnabledPlayer(pn)
|
||||||
{
|
{
|
||||||
TrailEntry *te = tes[pn];
|
TrailEntry *te = tes[pn];
|
||||||
Difficulty dc = te->pSteps->GetDifficulty();
|
Difficulty dc = te->dc;
|
||||||
if( dc == DIFFICULTY_INVALID )
|
if( dc == DIFFICULTY_INVALID )
|
||||||
{
|
{
|
||||||
int iLow = te->iLowMeter;
|
int iLow = te->iLowMeter;
|
||||||
|
|||||||
@@ -23,7 +23,8 @@ struct TrailEntry
|
|||||||
pSteps(NULL),
|
pSteps(NULL),
|
||||||
bMystery(false),
|
bMystery(false),
|
||||||
iLowMeter(-1),
|
iLowMeter(-1),
|
||||||
iHighMeter(-1)
|
iHighMeter(-1),
|
||||||
|
dc(DIFFICULTY_INVALID)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
void GetAttackArray( AttackArray &out ) const;
|
void GetAttackArray( AttackArray &out ) const;
|
||||||
@@ -33,8 +34,12 @@ struct TrailEntry
|
|||||||
CString Modifiers;
|
CString Modifiers;
|
||||||
AttackArray Attacks;
|
AttackArray Attacks;
|
||||||
bool bMystery;
|
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 iLowMeter;
|
||||||
int iHighMeter;
|
int iHighMeter;
|
||||||
|
Difficulty dc;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Trail
|
class Trail
|
||||||
|
|||||||
Reference in New Issue
Block a user