fix VC6 compile error
This commit is contained in:
@@ -33,8 +33,8 @@ void DifficultyList::Load()
|
||||
m_Meters = new DifficultyMeter[MAX_METERS];
|
||||
m_CurSong = NULL;
|
||||
|
||||
int pn, m;
|
||||
for( pn = 0; pn < NUM_PLAYERS; ++pn )
|
||||
{
|
||||
for( int pn = 0; pn < NUM_PLAYERS; ++pn )
|
||||
{
|
||||
if( !GAMESTATE->IsHumanPlayer(pn) )
|
||||
continue;
|
||||
@@ -52,8 +52,10 @@ void DifficultyList::Load()
|
||||
m_CursorFrames[pn].AddChild( m_Cursors[pn] );
|
||||
this->AddChild( &m_CursorFrames[pn] );
|
||||
}
|
||||
}
|
||||
|
||||
for( m = 0; m < MAX_METERS; ++m )
|
||||
{
|
||||
for( int m = 0; m < MAX_METERS; ++m )
|
||||
{
|
||||
m_Meters[m].SetName( "DifficultySummaryRow", "Row" );
|
||||
m_Meters[m].Load();
|
||||
@@ -67,17 +69,22 @@ void DifficultyList::Load()
|
||||
m_Number[m].LoadFromFont( THEME->GetPathToF(ssprintf("%s number",m_sName.c_str())) );
|
||||
this->AddChild( &m_Number[m] );
|
||||
}
|
||||
}
|
||||
|
||||
for( pn = 0; pn < NUM_PLAYERS; ++pn )
|
||||
{
|
||||
for( int pn = 0; pn < NUM_PLAYERS; ++pn )
|
||||
if( GAMESTATE->IsHumanPlayer(pn) )
|
||||
ON_COMMAND( m_Cursors[pn] );
|
||||
}
|
||||
|
||||
{
|
||||
for( int m = 0; m < MAX_METERS; ++m )
|
||||
{
|
||||
ON_COMMAND( m_Meters[m] );
|
||||
ON_COMMAND( m_Descriptions[m] );
|
||||
ON_COMMAND( m_Number[m] );
|
||||
}
|
||||
}
|
||||
|
||||
UpdatePositions();
|
||||
PositionItems( false );
|
||||
|
||||
Reference in New Issue
Block a user