simplify
This commit is contained in:
@@ -1097,13 +1097,13 @@ void ScreenGameplay::LoadLights()
|
|||||||
m_CabinetLightsNoteData.Init();
|
m_CabinetLightsNoteData.Init();
|
||||||
ASSERT( GAMESTATE->m_pCurSong );
|
ASSERT( GAMESTATE->m_pCurSong );
|
||||||
|
|
||||||
Steps *pSteps = GAMESTATE->m_pCurSong->GetClosestNotes( STEPS_TYPE_LIGHTS_CABINET, StringToDifficulty(PREFSMAN->m_sLightsStepsDifficulty) );
|
const Steps *pSteps = GAMESTATE->m_pCurSong->GetClosestNotes( STEPS_TYPE_LIGHTS_CABINET, StringToDifficulty(PREFSMAN->m_sLightsStepsDifficulty) );
|
||||||
if( pSteps != NULL )
|
if( pSteps != NULL )
|
||||||
{
|
{
|
||||||
pSteps->GetNoteData( m_CabinetLightsNoteData );
|
pSteps->GetNoteData( m_CabinetLightsNoteData );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
pSteps = GAMESTATE->m_pCurSong->GetClosestNotes( GAMESTATE->GetCurrentStyle()->m_StepsType, StringToDifficulty(PREFSMAN->m_sLightsStepsDifficulty) );
|
pSteps = GAMESTATE->m_pCurSong->GetClosestNotes( GAMESTATE->GetCurrentStyle()->m_StepsType, StringToDifficulty(PREFSMAN->m_sLightsStepsDifficulty) );
|
||||||
if( pSteps )
|
if( pSteps )
|
||||||
{
|
{
|
||||||
@@ -1111,7 +1111,6 @@ void ScreenGameplay::LoadLights()
|
|||||||
pSteps->GetNoteData( TapNoteData );
|
pSteps->GetNoteData( TapNoteData );
|
||||||
NoteDataUtil::LoadTransformedLights( TapNoteData, m_CabinetLightsNoteData, GameManager::StepsTypeToNumTracks(STEPS_TYPE_LIGHTS_CABINET) );
|
NoteDataUtil::LoadTransformedLights( TapNoteData, m_CabinetLightsNoteData, GameManager::StepsTypeToNumTracks(STEPS_TYPE_LIGHTS_CABINET) );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float ScreenGameplay::StartPlayingSong(float MinTimeToNotes, float MinTimeToMusic)
|
float ScreenGameplay::StartPlayingSong(float MinTimeToNotes, float MinTimeToMusic)
|
||||||
|
|||||||
Reference in New Issue
Block a user