From 18b047fd945b38a7f18bec48b9dfaed67edde530 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 8 Sep 2006 02:07:19 +0000 Subject: [PATCH] Accept input from P2 if it is expected. --- stepmania/src/ScreenEdit.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 68f45beb00..cd54aa9a11 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -2082,15 +2082,19 @@ void ScreenEdit::InputPlay( const InputEventPlus &input, EditButton EditB ) { return; } - + + if( PREFSMAN->m_AutoPlay != PC_HUMAN ) + return; + switch( input.StyleI.player ) { 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; + 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 )