various commits from SM4 SVN, courtesy of Glenn and Vyhd.
This commit is contained in:
+7
-4
@@ -712,7 +712,7 @@ void ScreenEdit::Init()
|
||||
CopyToLastSave();
|
||||
|
||||
m_CurrentAction = MAIN_MENU_CHOICE_INVALID;
|
||||
if( GAMESTATE->m_pCurSteps[0]->m_StepsType == StepsType_dance_routine )
|
||||
if( GAMESTATE->GetCurrentStyle()->m_StyleType == StyleType_TwoPlayersSharedSides )
|
||||
m_InputPlayerNumber = PLAYER_1;
|
||||
else
|
||||
m_InputPlayerNumber = PLAYER_INVALID;
|
||||
@@ -2179,6 +2179,12 @@ void ScreenEdit::InputPlay( const InputEventPlus &input, EditButton EditB )
|
||||
bool bRelease = input.type == IET_RELEASE;
|
||||
switch( input.pn )
|
||||
{
|
||||
case PLAYER_2:
|
||||
// ignore player 2 input unless this mode requires it
|
||||
if( GAMESTATE->GetCurrentStyle()->m_StyleType != StyleType_TwoPlayersSharedSides )
|
||||
break;
|
||||
|
||||
// fall through to input handling logic:
|
||||
case PLAYER_1:
|
||||
{
|
||||
switch( gbt )
|
||||
@@ -2199,9 +2205,6 @@ void ScreenEdit::InputPlay( const InputEventPlus &input, EditButton EditB )
|
||||
}
|
||||
}
|
||||
break;
|
||||
case PLAYER_2:
|
||||
if( GAMESTATE->GetCurrentStyle()->m_StyleType == StyleType_TwoPlayersSharedSides )
|
||||
m_Player->Step( iCol, -1, input.DeviceI.ts, false, input.type == IET_RELEASE );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user