simplify
This commit is contained in:
@@ -527,8 +527,7 @@ void Player::Update( float fDeltaTime )
|
|||||||
|
|
||||||
CHECKPOINT_M( ssprintf("%i %i", col, iNumCols) );
|
CHECKPOINT_M( ssprintf("%i %i", col, iNumCols) );
|
||||||
const StyleInput StyleI( pn, col );
|
const StyleInput StyleI( pn, col );
|
||||||
const GameInput GameI = GAMESTATE->GetCurrentStyle()->StyleInputToGameInput( StyleI );
|
bool bIsHoldingButton = INPUTMAPPER->IsButtonDown( StyleI );
|
||||||
bool bIsHoldingButton = INPUTMAPPER->IsButtonDown( GameI );
|
|
||||||
// TODO: Make this work for non-human-controlled players
|
// TODO: Make this work for non-human-controlled players
|
||||||
if( bIsHoldingButton && !GAMESTATE->m_bDemonstrationOrJukebox && m_pPlayerState->m_PlayerController==PC_HUMAN )
|
if( bIsHoldingButton && !GAMESTATE->m_bDemonstrationOrJukebox && m_pPlayerState->m_PlayerController==PC_HUMAN )
|
||||||
if( m_pNoteField )
|
if( m_pNoteField )
|
||||||
|
|||||||
Reference in New Issue
Block a user