fix warnings
This commit is contained in:
@@ -276,7 +276,7 @@ void EditCoursesMenu::Start()
|
|||||||
|
|
||||||
m_soundStart.Play();
|
m_soundStart.Play();
|
||||||
GetSelectedCourse()->m_entries.erase( GetSelectedCourse()->m_entries.begin()+m_iSelection[ROW_ENTRY] );
|
GetSelectedCourse()->m_entries.erase( GetSelectedCourse()->m_entries.begin()+m_iSelection[ROW_ENTRY] );
|
||||||
CLAMP( m_iSelection[ROW_ENTRY], 0, GetSelectedCourse()->m_entries.size()-1 );
|
CLAMP( m_iSelection[ROW_ENTRY], 0, (int) GetSelectedCourse()->m_entries.size()-1 );
|
||||||
OnRowValueChanged( ROW_ENTRY );
|
OnRowValueChanged( ROW_ENTRY );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -328,7 +328,7 @@ void EditCoursesMenu::Start()
|
|||||||
{
|
{
|
||||||
CString sDifficulty = (i==NUM_DIFFICULTIES) ? "Don't care" : DifficultyToString((Difficulty)i);
|
CString sDifficulty = (i==NUM_DIFFICULTIES) ? "Don't care" : DifficultyToString((Difficulty)i);
|
||||||
g_CourseEntryMenu.rows[difficulty].choices.push_back( sDifficulty );
|
g_CourseEntryMenu.rows[difficulty].choices.push_back( sDifficulty );
|
||||||
if( GetSelectedEntry()->difficulty == i )
|
if( GetSelectedEntry()->difficulty == (int) i )
|
||||||
g_CourseEntryMenu.rows[difficulty].defaultChoice = i;
|
g_CourseEntryMenu.rows[difficulty].defaultChoice = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -345,9 +345,9 @@ void EditCoursesMenu::Start()
|
|||||||
CString sMeter = (i==0) ? "Don't care" : ssprintf("%d", i);
|
CString sMeter = (i==0) ? "Don't care" : ssprintf("%d", i);
|
||||||
g_CourseEntryMenu.rows[low_meter].choices.push_back( sMeter );
|
g_CourseEntryMenu.rows[low_meter].choices.push_back( sMeter );
|
||||||
g_CourseEntryMenu.rows[high_meter].choices.push_back( sMeter );
|
g_CourseEntryMenu.rows[high_meter].choices.push_back( sMeter );
|
||||||
if( GetSelectedEntry()->low_meter == i )
|
if( GetSelectedEntry()->low_meter == (int) i )
|
||||||
g_CourseEntryMenu.rows[low_meter].defaultChoice = i;
|
g_CourseEntryMenu.rows[low_meter].defaultChoice = i;
|
||||||
if( GetSelectedEntry()->high_meter == i )
|
if( GetSelectedEntry()->high_meter == (int) i )
|
||||||
g_CourseEntryMenu.rows[high_meter].defaultChoice = i;
|
g_CourseEntryMenu.rows[high_meter].defaultChoice = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -361,7 +361,7 @@ void EditCoursesMenu::Start()
|
|||||||
{
|
{
|
||||||
CString sNum = ssprintf("%d", i);
|
CString sNum = ssprintf("%d", i);
|
||||||
g_CourseEntryMenu.rows[high_meter].choices.push_back( sNum );
|
g_CourseEntryMenu.rows[high_meter].choices.push_back( sNum );
|
||||||
if( GetSelectedEntry()->players_index == i-1 )
|
if( GetSelectedEntry()->players_index == (int) i-1 )
|
||||||
g_CourseEntryMenu.rows[best_worst_value].defaultChoice = i;
|
g_CourseEntryMenu.rows[best_worst_value].defaultChoice = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ void ScreenSongOptions::ImportOptions()
|
|||||||
m_iSelectedOption[0][SO_RATE] = 7; // in case we don't match below
|
m_iSelectedOption[0][SO_RATE] = 7; // in case we don't match below
|
||||||
for( unsigned i=0; i<g_SongOptionsLines[SO_RATE].choices.size(); i++ )
|
for( unsigned i=0; i<g_SongOptionsLines[SO_RATE].choices.size(); i++ )
|
||||||
{
|
{
|
||||||
float fThisRate = atof(g_SongOptionsLines[SO_RATE].choices[i]);
|
float fThisRate = (float) atof(g_SongOptionsLines[SO_RATE].choices[i]);
|
||||||
if( fThisRate == so.m_fMusicRate )
|
if( fThisRate == so.m_fMusicRate )
|
||||||
m_iSelectedOption[0][SO_RATE] = i;
|
m_iSelectedOption[0][SO_RATE] = i;
|
||||||
}
|
}
|
||||||
@@ -109,7 +109,7 @@ void ScreenSongOptions::ExportOptions()
|
|||||||
so.m_bAutoSync = !!m_iSelectedOption[0][SO_AUTOSYNC];
|
so.m_bAutoSync = !!m_iSelectedOption[0][SO_AUTOSYNC];
|
||||||
|
|
||||||
int iSel = m_iSelectedOption[0][SO_RATE];
|
int iSel = m_iSelectedOption[0][SO_RATE];
|
||||||
so.m_fMusicRate = atof( g_SongOptionsLines[SO_RATE].choices[iSel] );
|
so.m_fMusicRate = (float) atof( g_SongOptionsLines[SO_RATE].choices[iSel] );
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenSongOptions::GoToPrevState()
|
void ScreenSongOptions::GoToPrevState()
|
||||||
|
|||||||
Reference in New Issue
Block a user