From e4eb43edf0f80439db3b3e043410582349096b40 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Thu, 26 Feb 2004 07:27:54 +0000 Subject: [PATCH] fix "all mines are hit if PadStickSeconds is 0" --- stepmania/src/Player.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index b09b96744b..4e8a50d317 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -1087,10 +1087,18 @@ void PlayerMinus::CrossedMineRow( int iNoteRow ) { const StyleInput StyleI( m_PlayerNumber, t ); const GameInput GameI = GAMESTATE->GetCurrentStyleDef()->StyleInputToGameInput( StyleI ); - float fSecsHeld = INPUTMAPPER->GetSecsHeld( GameI ); - - if( fSecsHeld >= PREFSMAN->m_fPadStickSeconds ) - Step( t, now+(-PREFSMAN->m_fPadStickSeconds) ); + if( PREFSMAN->m_fPadStickSeconds > 0 ) + { + float fSecsHeld = INPUTMAPPER->GetSecsHeld( GameI ); + if( fSecsHeld >= PREFSMAN->m_fPadStickSeconds ) + Step( t, now+(-PREFSMAN->m_fPadStickSeconds) ); + } + else + { + bool bIsDown = INPUTMAPPER->IsButtonDown( GameI ); + if( bIsDown ) + Step( t, now ); + } } } }