Fix crash in PlayerOptions.

Random meter songs in difficult courses get +2 to meter.
This commit is contained in:
Glenn Maynard
2003-07-17 22:44:17 +00:00
parent 30f4444ef3
commit 1a74714b53
3 changed files with 82 additions and 14 deletions
+3 -2
View File
@@ -108,7 +108,7 @@ void ScreenPlayerOptions::ImportOptions()
if( GAMESTATE->m_pCurCourse ) // playing a course
{
m_OptionRow[PO_STEP].choices.push_back( "REGULAR" );
if( GAMESTATE->m_pCurCourse->HasDifficult() )
if( GAMESTATE->m_pCurCourse->HasDifficult( GAMESTATE->GetCurrentStyleDef()->m_NotesType ) )
m_OptionRow[PO_STEP].choices.push_back( "DIFFICULT" );
}
else
@@ -216,7 +216,8 @@ void ScreenPlayerOptions::ImportOptions()
if( GAMESTATE->m_pCurCourse ) // playing a course
{
if( GAMESTATE->m_bDifficultCourses )
if( GAMESTATE->m_bDifficultCourses &&
GAMESTATE->m_pCurCourse->HasDifficult( GAMESTATE->GetCurrentStyleDef()->m_NotesType ) )
m_iSelectedOption[p][PO_STEP] = 1;
else
m_iSelectedOption[p][PO_STEP] = 0;