Accept input from P2 if it is expected.
This commit is contained in:
@@ -2083,14 +2083,18 @@ void ScreenEdit::InputPlay( const InputEventPlus &input, EditButton EditB )
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( PREFSMAN->m_AutoPlay != PC_HUMAN )
|
||||||
|
return;
|
||||||
|
|
||||||
switch( input.StyleI.player )
|
switch( input.StyleI.player )
|
||||||
{
|
{
|
||||||
case PLAYER_1:
|
case PLAYER_1:
|
||||||
if( PREFSMAN->m_AutoPlay == PC_HUMAN )
|
|
||||||
m_Player->Step( input.StyleI.col, -1, input.DeviceI.ts, false, input.type == IET_RELEASE );
|
m_Player->Step( input.StyleI.col, -1, input.DeviceI.ts, false, input.type == IET_RELEASE );
|
||||||
break;
|
break;
|
||||||
|
case PLAYER_2:
|
||||||
|
if( GAMESTATE->GetCurrentStyle()->m_StyleType == TWO_PLAYERS_SHARED_SIDES )
|
||||||
|
m_Player->Step( input.StyleI.col, -1, input.DeviceI.ts, false, input.type == IET_RELEASE );
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScreenEdit::TransitionEditState( EditState em )
|
void ScreenEdit::TransitionEditState( EditState em )
|
||||||
|
|||||||
Reference in New Issue
Block a user