course 2p fixes

This commit is contained in:
Glenn Maynard
2007-04-29 19:54:56 +00:00
parent 080d39351b
commit eb792833d6
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -998,7 +998,7 @@ void MusicWheel::SetOpenGroup( RString group )
/* If AUTO_SET_STYLE, hide courses that prefer a style that isn't available. */
if( d.m_Type == TYPE_COURSE && CommonMetrics::AUTO_SET_STYLE )
{
const Style *pStyle = d.m_pCourse->GetCourseStyle( GAMESTATE->m_pCurGame );
const Style *pStyle = d.m_pCourse->GetCourseStyle( GAMESTATE->m_pCurGame, GAMESTATE->GetNumSidesJoined() );
if( pStyle )
{
if( find( vpPossibleStyles.begin(), vpPossibleStyles.end(), pStyle ) == vpPossibleStyles.end() )