now loads couple and battle steps correctly
This commit is contained in:
@@ -419,13 +419,10 @@ void Song::GetStepsThatMatchGameMode( GameMode gm, CArray<Steps*, Steps*&>& arra
|
||||
|
||||
void Song::GetNumFeet( GameMode gm, int& iDiffEasyOut, int& iDiffMediumOut, int& iDiffHardOut )
|
||||
{
|
||||
iDiffEasyOut = iDiffMediumOut = iDiffHardOut = -1;
|
||||
iDiffEasyOut = iDiffMediumOut = iDiffHardOut = -1; // -1 means not found
|
||||
CArray<Steps*, Steps*&> arrayMatchingSteps;
|
||||
GetStepsThatMatchGameMode( gm, arrayMatchingSteps );
|
||||
|
||||
//bool bFoundEasy, bFoundMedium, bFoundHard;
|
||||
//bFoundEasy = bFoundMedium = bFoundHard = false;
|
||||
|
||||
for( int i=0; i<arrayMatchingSteps.GetSize(); i++ )
|
||||
{
|
||||
int iNumFeet = arrayMatchingSteps[i]->m_iNumFeet;
|
||||
@@ -447,7 +444,7 @@ void Song::GetNumFeet( GameMode gm, int& iDiffEasyOut, int& iDiffMediumOut, int&
|
||||
iDiffEasyOut = iNumFeet;
|
||||
else if( iDiffHardOut < 0 && iNumFeet >= 7 )
|
||||
iDiffHardOut = iNumFeet;
|
||||
else
|
||||
else if( iDiffMediumOut < 0 )
|
||||
iDiffMediumOut = iNumFeet;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user