fix signed/unsigned warnings

capitalize constants, not variables
This commit is contained in:
Glenn Maynard
2003-05-12 01:05:21 +00:00
parent 563f57ee0d
commit 3766eb5c48
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -62,17 +62,17 @@ ScreenSelectDifficultyEX::ScreenSelectDifficultyEX() : ScreenSelect( "ScreenSele
m_bChosen[p] = false;
}
NUM_MODES = 0;
m_NumModes = 0;
for( unsigned c=0; c<m_aModeChoices.size(); c++ )
{
m_ModeChoices.push_back( m_aModeChoices[c] );
NUM_MODES++;
m_NumModes++;
}
m_sprIconBar.Load( THEME->GetPathToG("ScreenSelectDifficultyEX icon bar.png") );
this->AddChild( &m_sprIconBar );
for( unsigned k=0; k < NUM_MODES || k <= 7 ; k++ )
for( unsigned k=0; k < m_NumModes || k <= 7 ; k++ )
{
CString MOO = m_aModeChoices[k].name;
if( IsValidModeName(MOO) )
@@ -374,7 +374,7 @@ void ScreenSelectDifficultyEX::MenuStart( PlayerNumber pn )
if( !IsACourse( m_iChoice[pn] ) || !AnotherPlayerSelected)
{
// Disable the courses
for( unsigned e=0; e < NUM_MODES || e <= 7; e++ )
for( unsigned e=0; e < m_NumModes || e <= 7; e++ )
{
if( IsACourse(e) )
{