Accept input from P2 if it is expected.

This commit is contained in:
Steve Checkoway
2006-09-08 02:07:19 +00:00
parent 1636443da5
commit 18b047fd94
+6 -2
View File
@@ -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 )