fix random meter course entries not showing up correctly in CourseEntryDisplay (again)

This commit is contained in:
Glenn Maynard
2004-06-08 07:19:56 +00:00
parent 62acd3526f
commit 65cece919e
+10 -1
View File
@@ -813,7 +813,16 @@ bool Course::GetTrailUnsorted( StepsType st, CourseDifficulty cd, Trail &trail )
te.bMystery = e.mystery;
te.iLowMeter = low_meter;
te.iHighMeter = high_meter;
te.dc = dc;
/* If we chose based on meter (not difficulty), then store DIFFICULTY_INVALID, so
* other classes can tell that we used meter. */
if( e.difficulty == DIFFICULTY_INVALID )
te.dc = DIFFICULTY_INVALID;
else
{
/* Otherwise, store the actual difficulty we got (post-course-difficulty).
* This may or may not be the same as e.difficulty. */
te.dc = dc;
}
trail.m_vEntries.push_back( te );
}