Fix auto set style in course mode.
This commit is contained in:
@@ -1894,11 +1894,23 @@ void ScreenSelectMusic::AfterMusicChange()
|
|||||||
{
|
{
|
||||||
const Course *lCourse = m_MusicWheel.GetSelectedCourse();
|
const Course *lCourse = m_MusicWheel.GetSelectedCourse();
|
||||||
const Style *pStyle = NULL;
|
const Style *pStyle = NULL;
|
||||||
if( CommonMetrics::AUTO_SET_STYLE )
|
if(CommonMetrics::AUTO_SET_STYLE)
|
||||||
pStyle = pCourse->GetCourseStyle( GAMESTATE->m_pCurGame, GAMESTATE->GetNumSidesJoined() );
|
{
|
||||||
if( pStyle == NULL )
|
pStyle = pCourse->GetCourseStyle(GAMESTATE->m_pCurGame, GAMESTATE->GetNumPlayersEnabled());
|
||||||
|
if(pStyle == NULL)
|
||||||
|
{
|
||||||
|
lCourse->GetAllTrails(m_vpTrails);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
lCourse->GetTrails(m_vpTrails, pStyle->m_StepsType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
pStyle = GAMESTATE->GetCurrentStyle(PLAYER_INVALID);
|
pStyle = GAMESTATE->GetCurrentStyle(PLAYER_INVALID);
|
||||||
lCourse->GetTrails( m_vpTrails, pStyle->m_StepsType );
|
lCourse->GetTrails(m_vpTrails, pStyle->m_StepsType);
|
||||||
|
}
|
||||||
|
|
||||||
m_sSampleMusicToPlay = m_sCourseMusicPath;
|
m_sSampleMusicToPlay = m_sCourseMusicPath;
|
||||||
m_fSampleStartSeconds = 0;
|
m_fSampleStartSeconds = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user