Disabled late join on SSM if on extra stage to prevent crash in summary screen.

This commit is contained in:
Kyzentun
2015-04-14 12:25:40 -06:00
parent b35683f7ff
commit fc6ce722ca
+7 -1
View File
@@ -502,8 +502,14 @@ bool ScreenSelectMusic::Input( const InputEventPlus &input )
return false; // don't care
// Handle late joining
if( m_SelectionState != SelectionState_Finalized && input.MenuI == GAME_BUTTON_START && input.type == IET_FIRST_PRESS && GAMESTATE->JoinInput(input.pn) )
// If the other player is allowed to join on the extra stage, then the
// summary screen will crash on invalid stage stats. -Kyz
if(m_SelectionState != SelectionState_Finalized &&
input.MenuI == GAME_BUTTON_START && input.type == IET_FIRST_PRESS &&
!GAMESTATE->IsAnExtraStage() && GAMESTATE->JoinInput(input.pn))
{
return true; // don't handle this press again below
}
if( !GAMESTATE->IsHumanPlayer(input.pn) )
return false;