simplify
This commit is contained in:
@@ -819,16 +819,14 @@ bool SongManager::GetExtraStageInfoFromCourse( bool bExtra2, CString sPreferredG
|
|||||||
if( course.GetEstimatedNumStages() <= 0 ) return false;
|
if( course.GetEstimatedNumStages() <= 0 ) return false;
|
||||||
|
|
||||||
CString sModifiers;
|
CString sModifiers;
|
||||||
if( course.GetFirstStageInfo( pSongOut, pNotesOut, sModifiers, GAMESTATE->GetCurrentStyleDef()->m_NotesType ) )
|
if( !course.GetFirstStageInfo( pSongOut, pNotesOut, sModifiers, GAMESTATE->GetCurrentStyleDef()->m_NotesType ) )
|
||||||
{
|
|
||||||
po_out.Init();
|
|
||||||
po_out.FromString( sModifiers );
|
|
||||||
so_out.Init();
|
|
||||||
so_out.FromString( sModifiers );
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
po_out.Init();
|
||||||
|
po_out.FromString( sModifiers );
|
||||||
|
so_out.Init();
|
||||||
|
so_out.FromString( sModifiers );
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return true if n1 < n2. */
|
/* Return true if n1 < n2. */
|
||||||
|
|||||||
Reference in New Issue
Block a user