fix warnings
This commit is contained in:
@@ -150,7 +150,7 @@ void CourseUtil::SortCoursePointerArrayByAvgDifficulty( vector<Course*> &apCours
|
|||||||
for(unsigned i = 0; i < apCourses.size(); ++i)
|
for(unsigned i = 0; i < apCourses.size(); ++i)
|
||||||
{
|
{
|
||||||
Trail* pTrail = apCourses[i]->GetTrail( GAMESTATE->GetCurrentStyleDef()->m_StepsType, COURSE_DIFFICULTY_REGULAR );
|
Trail* pTrail = apCourses[i]->GetTrail( GAMESTATE->GetCurrentStyleDef()->m_StepsType, COURSE_DIFFICULTY_REGULAR );
|
||||||
course_sort_val[apCourses[i]] = pTrail->GetMeter();
|
course_sort_val[apCourses[i]] = (float) pTrail->GetMeter();
|
||||||
}
|
}
|
||||||
sort( apCourses.begin(), apCourses.end(), CompareCoursePointersByTitle );
|
sort( apCourses.begin(), apCourses.end(), CompareCoursePointersByTitle );
|
||||||
stable_sort( apCourses.begin(), apCourses.end(), CompareCoursePointersBySortValueAscending );
|
stable_sort( apCourses.begin(), apCourses.end(), CompareCoursePointersBySortValueAscending );
|
||||||
|
|||||||
@@ -153,7 +153,6 @@ void PaneDisplay::SetContent( PaneContents c )
|
|||||||
|
|
||||||
const Song *pSong = GAMESTATE->m_pCurSong;
|
const Song *pSong = GAMESTATE->m_pCurSong;
|
||||||
const Steps *pSteps = GAMESTATE->m_pCurSteps[m_PlayerNumber];
|
const Steps *pSteps = GAMESTATE->m_pCurSteps[m_PlayerNumber];
|
||||||
StepsType st = GAMESTATE->GetCurrentStyleDef()->m_StepsType;
|
|
||||||
const Course *pCourse = GAMESTATE->m_pCurCourse;
|
const Course *pCourse = GAMESTATE->m_pCurCourse;
|
||||||
const Trail *pTrail = GAMESTATE->m_pCurTrail[m_PlayerNumber];
|
const Trail *pTrail = GAMESTATE->m_pCurTrail[m_PlayerNumber];
|
||||||
|
|
||||||
|
|||||||
@@ -322,7 +322,6 @@ ScreenNameEntryTraditional::ScreenNameEntryTraditional( CString sClassName ) : S
|
|||||||
Song* pSong = ss.pSong;
|
Song* pSong = ss.pSong;
|
||||||
Steps* pSteps = ss.pSteps[p];
|
Steps* pSteps = ss.pSteps[p];
|
||||||
Course* pCourse = GAMESTATE->m_pCurCourse;
|
Course* pCourse = GAMESTATE->m_pCurCourse;
|
||||||
StepsType st = GAMESTATE->GetCurrentStyleDef()->m_StepsType;
|
|
||||||
Trail* pTrail = GAMESTATE->m_pCurTrail[p];
|
Trail* pTrail = GAMESTATE->m_pCurTrail[p];
|
||||||
|
|
||||||
int iHighScoreIndex = -1; // -1 means "out of ranking"
|
int iHighScoreIndex = -1; // -1 means "out of ranking"
|
||||||
|
|||||||
Reference in New Issue
Block a user