Fix "4..6" ranges never showing up in CourseContentsList. (That's why

iCourseIndex and Course::GetDifficulty existed.)
This commit is contained in:
Glenn Maynard
2004-05-25 20:33:17 +00:00
parent c098139d40
commit 07cc7b5321
3 changed files with 8 additions and 2 deletions
+1
View File
@@ -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 );
} }
} }
+1 -1
View File
@@ -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;
+6 -1
View File
@@ -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