Reload wheel on late join.
This commit is contained in:
+9
-9
@@ -1511,20 +1511,20 @@ void MusicWheel::PlayerJoined()
|
|||||||
// a song that has an illegal stepstype for the current amount of players.
|
// a song that has an illegal stepstype for the current amount of players.
|
||||||
// (e.g. a song that only has doubles difficulties and a second player joins.)
|
// (e.g. a song that only has doubles difficulties and a second player joins.)
|
||||||
// We need to rebuild the wheel item data in this situation. -aj
|
// We need to rebuild the wheel item data in this situation. -aj
|
||||||
// TaroNuke: Is at some point this going to remove the non selectable song/course choices?
|
// TaroNuke: Is at some point this going to remove the non selectable song/course choices?
|
||||||
if( !GAMESTATE->IsCourseMode() && !PREFSMAN->m_bAutogenSteps )
|
if( !GAMESTATE->IsCourseMode() && !PREFSMAN->m_bAutogenSteps )
|
||||||
{
|
{
|
||||||
FOREACH_ENUM(SortOrder, so)
|
FOREACH_ENUM(SortOrder, so)
|
||||||
{
|
{
|
||||||
m_WheelItemDatasStatus[so] = INVALID;
|
m_WheelItemDatasStatus[so] = INVALID;
|
||||||
}
|
}
|
||||||
// TaroNuke: Refresh the screen - feel free to replace this with an actual reload screen function
|
// TaroNuke: Refresh the screen - feel free to replace this with an actual reload screen function
|
||||||
SCREENMAN->SetNewScreen( "ScreenSelectMusic" );
|
SCREENMAN->SetNewScreen( "ScreenSelectMusic" );
|
||||||
// RebuildWheelItems();
|
// RebuildWheelItems();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SCREENMAN->SetNewScreen( "ScreenSelectCourse" );
|
SCREENMAN->SetNewScreen( "ScreenSelectCourse" );
|
||||||
}
|
}
|
||||||
SetOpenSection( m_sExpandedSectionName );
|
SetOpenSection( m_sExpandedSectionName );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user