Fix compiler warnings.
This commit is contained in:
@@ -188,4 +188,4 @@ void CombinedLifeMeterEnemy::SetFace( Face face )
|
||||
void CombinedLifeMeterEnemy::OnTaunt()
|
||||
{
|
||||
SetFace( taunt );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -634,4 +634,4 @@ bool GameState::ShowMarvelous() const
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ void OptionIcon::Load( PlayerNumber pn, CString sText, bool bHeader )
|
||||
{
|
||||
static CString sStopWords[] = { "OFF", "VISIBLE", "VIVID", "STANDARD", "X1", "HOLDS", "DEFAULT", "OVERHEAD" };
|
||||
|
||||
for( int i=0; i<ARRAYSIZE(sStopWords); i++ )
|
||||
for( unsigned i=0; i<ARRAYSIZE(sStopWords); i++ )
|
||||
if( 0==stricmp(sText,sStopWords[i]) )
|
||||
sText = "";
|
||||
|
||||
|
||||
@@ -478,4 +478,4 @@ CString ScreenPlayerOptions::ConvertParamToThemeDifficulty(
|
||||
if (in == "ONI") return CHALLENGE_DESCRIPTION; // Extreme
|
||||
|
||||
return in; // something else
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ void ScreenSongOptions::ImportOptions()
|
||||
m_iSelectedOption[0][SO_AUTOSYNC] = so.m_bAutoSync;
|
||||
|
||||
m_iSelectedOption[0][SO_RATE] = 7; // in case we don't match below
|
||||
for( int i=0; i<g_SongOptionsLines[SO_RATE].choices.size(); i++ )
|
||||
for( unsigned i=0; i<g_SongOptionsLines[SO_RATE].choices.size(); i++ )
|
||||
if( so.m_fMusicRate == atof(g_SongOptionsLines[SO_RATE].choices[i]) )
|
||||
m_iSelectedOption[0][SO_RATE] = i;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
|
||||
{
|
||||
LOG->Trace("ScreenUnlock::ScreenUnlock()");
|
||||
|
||||
int NumUnlocks = NUM_UNLOCKS;
|
||||
unsigned NumUnlocks = NUM_UNLOCKS;
|
||||
if (GAMESTATE->m_pUnlockingSys->m_SongEntries.size() < NumUnlocks)
|
||||
NumUnlocks = GAMESTATE->m_pUnlockingSys->m_SongEntries.size();
|
||||
|
||||
@@ -55,7 +55,7 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
|
||||
PointsUntilNextUnlock.LoadFromFont( THEME->GetPathToF("Common normal") );
|
||||
PointsUntilNextUnlock.SetHorizAlign( Actor::align_left );
|
||||
|
||||
int i;
|
||||
unsigned i;
|
||||
CString IconCommand = ICON_COMMAND;
|
||||
for(i=1; i <= NumUnlocks; i++)
|
||||
{
|
||||
@@ -235,7 +235,7 @@ ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
|
||||
|
||||
for(i=1; i <= UNLOCK_TEXT_SCROLL_ROWS; i++)
|
||||
{
|
||||
if (i > (int) LastUnlocks.size())
|
||||
if (i > LastUnlocks.size())
|
||||
continue;
|
||||
|
||||
unsigned NextIcon = LastUnlocks[LastUnlocks.size() - i];
|
||||
@@ -346,4 +346,4 @@ ScreenUnlock::~ScreenUnlock()
|
||||
SAFE_DELETE(entry);
|
||||
ItemIcons.pop_back();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1217,4 +1217,4 @@ void SongManager::UpdateRankingCourses()
|
||||
if (!RankingCourses[j].CompareNoCase(m_pCourses[i]->m_sPath))
|
||||
m_pCourses[i]->SortOrder_Ranking = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -505,4 +505,4 @@ float UnlockSystem::UnlockToasty()
|
||||
int UnlockSystem::GetNumUnlocks() const
|
||||
{
|
||||
return m_SongEntries.size();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,4 +28,4 @@ public:
|
||||
#undef ARCH_LOADING_WINDOW
|
||||
#define ARCH_LOADING_WINDOW LoadingWindow_Cocoa
|
||||
|
||||
#endif /* LOADING_WINDOW_COCOA */
|
||||
#endif /* LOADING_WINDOW_COCOA */
|
||||
|
||||
Reference in New Issue
Block a user