From 455d0c7378b01d700498ca103843a5e714ff2a2a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 13 Oct 2005 08:22:49 +0000 Subject: [PATCH] simplify --- stepmania/src/Player.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stepmania/src/Player.cpp b/stepmania/src/Player.cpp index 79d819a086..31d06fb6ba 100644 --- a/stepmania/src/Player.cpp +++ b/stepmania/src/Player.cpp @@ -527,8 +527,7 @@ void Player::Update( float fDeltaTime ) CHECKPOINT_M( ssprintf("%i %i", col, iNumCols) ); const StyleInput StyleI( pn, col ); - const GameInput GameI = GAMESTATE->GetCurrentStyle()->StyleInputToGameInput( StyleI ); - bool bIsHoldingButton = INPUTMAPPER->IsButtonDown( GameI ); + bool bIsHoldingButton = INPUTMAPPER->IsButtonDown( StyleI ); // TODO: Make this work for non-human-controlled players if( bIsHoldingButton && !GAMESTATE->m_bDemonstrationOrJukebox && m_pPlayerState->m_PlayerController==PC_HUMAN ) if( m_pNoteField )