From 7e07e7c8de361f8330b1864ecdf85036845596ff Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 4 Aug 2003 21:37:07 +0000 Subject: [PATCH] Handle updating internally --- stepmania/src/Course.cpp | 4 ++++ stepmania/src/MusicWheel.cpp | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index c5072b0568..e671e8c530 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -884,6 +884,8 @@ void SortCoursePointerArrayByDifficulty( vector &apCourses ) void SortCoursePointerArrayByRanking( vector &apCourses ) { + for(unsigned i=0; iUpdateCourseStats(); sort( apCourses.begin(), apCourses.end(), CompareCoursePointersByRanking ); } @@ -894,6 +896,8 @@ void SortCoursePointerArrayByAvgDifficulty( vector &apCourses ) void SortCoursePointerArrayByTotalDifficulty( vector &apCourses ) { + for(unsigned i=0; iUpdateCourseStats(); sort( apCourses.begin(), apCourses.end(), CompareCoursePointersByTotalDifficulty ); } diff --git a/stepmania/src/MusicWheel.cpp b/stepmania/src/MusicWheel.cpp index 255a4c9f3b..b6d0832a41 100644 --- a/stepmania/src/MusicWheel.cpp +++ b/stepmania/src/MusicWheel.cpp @@ -568,9 +568,6 @@ void MusicWheel::BuildWheelItemDatas( vector &arrayWheelItemDatas if (PREFSMAN->m_iCourseSortOrder != PrefsManager::COURSE_SORT_SONGS) { - for(i=0; iUpdateCourseStats(); - if (PREFSMAN->m_iCourseSortOrder == PrefsManager::COURSE_SORT_METER) SortCoursePointerArrayByAvgDifficulty( apCourses );