style
This commit is contained in:
@@ -1336,15 +1336,15 @@ void ScreenSelectMusic::SwitchToPreferredDifficulty()
|
|||||||
FOREACH_HumanPlayer( pn )
|
FOREACH_HumanPlayer( pn )
|
||||||
{
|
{
|
||||||
/* Find the closest match to the user's preferred difficulty. */
|
/* Find the closest match to the user's preferred difficulty. */
|
||||||
int CurDifference = -1;
|
int iCurDifference = -1;
|
||||||
for( unsigned i=0; i<m_vpSteps.size(); i++ )
|
for( unsigned i=0; i<m_vpSteps.size(); i++ )
|
||||||
{
|
{
|
||||||
int Diff = abs(m_vpSteps[i]->GetDifficulty() - GAMESTATE->m_PreferredDifficulty[pn]);
|
int iDiff = abs(m_vpSteps[i]->GetDifficulty() - GAMESTATE->m_PreferredDifficulty[pn]);
|
||||||
|
|
||||||
if( CurDifference == -1 || Diff < CurDifference )
|
if( iCurDifference == -1 || iDiff < iCurDifference )
|
||||||
{
|
{
|
||||||
m_iSelection[pn] = i;
|
m_iSelection[pn] = i;
|
||||||
CurDifference = Diff;
|
iCurDifference = iDiff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1356,15 +1356,15 @@ void ScreenSelectMusic::SwitchToPreferredDifficulty()
|
|||||||
FOREACH_HumanPlayer( pn )
|
FOREACH_HumanPlayer( pn )
|
||||||
{
|
{
|
||||||
/* Find the closest match to the user's preferred difficulty. */
|
/* Find the closest match to the user's preferred difficulty. */
|
||||||
int CurDifference = -1;
|
int iCurDifference = -1;
|
||||||
for( unsigned i=0; i<m_vpTrails.size(); i++ )
|
for( unsigned i=0; i<m_vpTrails.size(); i++ )
|
||||||
{
|
{
|
||||||
int Diff = abs(m_vpTrails[i]->m_CourseDifficulty - GAMESTATE->m_PreferredCourseDifficulty[pn]);
|
int iDiff = abs(m_vpTrails[i]->m_CourseDifficulty - GAMESTATE->m_PreferredCourseDifficulty[pn]);
|
||||||
|
|
||||||
if( CurDifference == -1 || Diff < CurDifference )
|
if( iCurDifference == -1 || iDiff < iCurDifference )
|
||||||
{
|
{
|
||||||
m_iSelection[pn] = i;
|
m_iSelection[pn] = i;
|
||||||
CurDifference = Diff;
|
iCurDifference = iDiff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user