From 65cece919e3c199caab05363eab6fdd44c1aa33e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 8 Jun 2004 07:19:56 +0000 Subject: [PATCH] fix random meter course entries not showing up correctly in CourseEntryDisplay (again) --- stepmania/src/Course.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 0ca4e8f0dc..d70f8454a9 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -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 ); }