move Steps searching out of song into SongUtil so that it can be shared with CourseEntry

This commit is contained in:
Chris Danford
2006-06-13 01:10:37 +00:00
parent acdf036e05
commit af3e1c571c
30 changed files with 464 additions and 378 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
#include "CommonMetrics.h"
#include "Command.h"
#include "Foreach.h"
#include "SongUtil.h"
#define MAX_METERS NUM_Difficulty + MAX_EDITS_PER_SONG
@@ -276,7 +277,7 @@ void DifficultyList::SetFromGameState()
else
{
vector<Steps*> CurSteps;
pSong->GetSteps( CurSteps, GAMESTATE->GetCurrentStyle()->m_StepsType );
SongUtil::GetSteps( pSong, CurSteps, GAMESTATE->GetCurrentStyle()->m_StepsType );
/* Should match the sort in ScreenSelectMusic::AfterMusicChange. */
StepsUtil::RemoveLockedSteps( pSong, CurSteps );