fffffffffffffffffffffffffffff

This commit is contained in:
AJ Kelly
2012-01-08 21:34:31 -06:00
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -1170,10 +1170,10 @@ void MusicWheel::ChangeMusic( int iDist )
}
bool MusicWheel::ChangeSort( SortOrder new_so ) // return true if change successful
bool MusicWheel::ChangeSort( SortOrder new_so, bool allowSameSort ) // return true if change successful
{
ASSERT( new_so < NUM_SortOrder );
if( GAMESTATE->m_SortOrder == new_so )
if( GAMESTATE->m_SortOrder == new_so && !allowSameSort )
return false;
// Don't change to SORT_MODE_MENU if it doesn't have at least two choices.
@@ -1511,12 +1511,12 @@ void MusicWheel::PlayerJoined()
// We need to rebuild the wheel item data in this situation. -aj
if( !GAMESTATE->IsCourseMode() && !PREFSMAN->m_bAutogenSteps )
{
if(m_WheelItemDatasStatus[GAMESTATE->m_SortOrder]!=INVALID)
m_WheelItemDatasStatus[GAMESTATE->m_SortOrder]=NEEDREFILTER;
FOREACH_ENUM(SortOrder, so)
{
m_WheelItemDatasStatus[so] = INVALID;
}
RebuildWheelItems();
}
SetOpenSection( m_sExpandedSectionName );
}
+1 -1
View File
@@ -23,7 +23,7 @@ public:
virtual void Load( RString sType );
void BeginScreen();
bool ChangeSort( SortOrder new_so ); // return true if change successful
bool ChangeSort( SortOrder new_so, bool allowSameSort = false ); // return true if change successful
bool NextSort(); // return true if change successful
void StartRoulette();
void StartRandom();