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
@@ -14,6 +14,7 @@
#include "song.h"
#include "Steps.h"
#include "LightsManager.h"
#include "SongUtil.h"
GameSoundManager *SOUND = NULL;
@@ -142,7 +143,7 @@ static void StartMusic( MusicToPlay &ToPlay )
ToPlay.HasTiming = true;
ToPlay.timing_data = song.m_Timing;
// get cabinet lights if any
Steps *pStepsCabinetLights = song.GetOneSteps( STEPS_TYPE_LIGHTS_CABINET );
Steps *pStepsCabinetLights = SongUtil::GetOneSteps( &song, STEPS_TYPE_LIGHTS_CABINET );
if( pStepsCabinetLights )
pStepsCabinetLights->GetNoteData( ToPlay.lights_data );
}