now loads couple and battle steps correctly

This commit is contained in:
Chris Danford
2001-11-30 19:08:44 +00:00
parent 9b4f0e6918
commit 77a5655668
4 changed files with 25 additions and 10 deletions
+2 -5
View File
@@ -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;
}