Enforce a rebuild, allow for sorting itself.
This commit is contained in:
+6
-6
@@ -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 );
|
ASSERT( new_so < NUM_SortOrder );
|
||||||
if( GAMESTATE->m_SortOrder == new_so )
|
if( GAMESTATE->m_SortOrder == new_so && !allowSameSort )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Don't change to SORT_MODE_MENU if it doesn't have at least two choices.
|
// 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
|
// We need to rebuild the wheel item data in this situation. -aj
|
||||||
if( !GAMESTATE->IsCourseMode() && !PREFSMAN->m_bAutogenSteps )
|
if( !GAMESTATE->IsCourseMode() && !PREFSMAN->m_bAutogenSteps )
|
||||||
{
|
{
|
||||||
if(m_WheelItemDatasStatus[GAMESTATE->m_SortOrder]!=INVALID)
|
FOREACH_ENUM(SortOrder, so)
|
||||||
m_WheelItemDatasStatus[GAMESTATE->m_SortOrder]=NEEDREFILTER;
|
{
|
||||||
|
m_WheelItemDatasStatus[so] = INVALID;
|
||||||
|
}
|
||||||
RebuildWheelItems();
|
RebuildWheelItems();
|
||||||
}
|
}
|
||||||
|
|
||||||
SetOpenSection( m_sExpandedSectionName );
|
SetOpenSection( m_sExpandedSectionName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ public:
|
|||||||
virtual void Load( RString sType );
|
virtual void Load( RString sType );
|
||||||
void BeginScreen();
|
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
|
bool NextSort(); // return true if change successful
|
||||||
void StartRoulette();
|
void StartRoulette();
|
||||||
void StartRandom();
|
void StartRandom();
|
||||||
|
|||||||
Reference in New Issue
Block a user