don't show keyblocks for non-human players

This commit is contained in:
Chris Danford
2004-01-01 04:06:37 +00:00
parent a9d49220c8
commit b0f277b696
+2 -1
View File
@@ -275,7 +275,8 @@ void PlayerMinus::Update( float fDeltaTime )
const StyleInput StyleI( m_PlayerNumber, bar );
const GameInput GameI = GAMESTATE->GetCurrentStyleDef()->StyleInputToGameInput( StyleI );
bool bIsHoldingButton = INPUTMAPPER->IsButtonDown( GameI );
if(bIsHoldingButton && !GAMESTATE->m_bDemonstrationOrJukebox)
// TODO: Make this work for non-human-controlled players
if( bIsHoldingButton && !GAMESTATE->m_bDemonstrationOrJukebox && GAMESTATE->m_PlayerController[m_PlayerNumber]==PC_HUMAN )
m_pNoteField->SetPressed(bar);
}