Fix warnings.

This commit is contained in:
Glenn Maynard
2003-09-15 07:14:39 +00:00
parent d44194405a
commit 6af0aa81c9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -530,11 +530,11 @@ float ScreenPlayerOptions::ConvertModToNumber(CString value)
{ {
if (IsModTimeSpacing(value)) if (IsModTimeSpacing(value))
{ {
return atof(value.c_str() + 1 ); return (float) atof(value.c_str() + 1 );
} }
else else
{ {
return atof(value.c_str() ); return (float) atof(value.c_str() );
} }
} }
+2 -2
View File
@@ -220,7 +220,7 @@ void ScreenSelectDifficulty::MenuRight( PlayerNumber pn )
return; return;
int iSwitchToIndex = -1; int iSwitchToIndex = -1;
for( int i=m_iChoiceOnPage[pn]+1; i<m_ModeChoices[m_CurrentPage].size(); i++ ) for( int i=m_iChoiceOnPage[pn]+1; i<(int) m_ModeChoices[m_CurrentPage].size(); i++ )
{ {
if( GAMESTATE->IsPlayable(m_ModeChoices[m_CurrentPage][i])) if( GAMESTATE->IsPlayable(m_ModeChoices[m_CurrentPage][i]))
{ {
@@ -273,7 +273,7 @@ void ScreenSelectDifficulty::ChangePage( Page newPage )
} }
} }
} else { } else {
for( int i=0; i<m_ModeChoices[newPage].size(); i++ ) for( unsigned i=0; i<m_ModeChoices[newPage].size(); i++ )
{ {
if( GAMESTATE->IsPlayable(m_ModeChoices[newPage][i])) if( GAMESTATE->IsPlayable(m_ModeChoices[newPage][i]))
{ {