Short circuiting logic: IsBeingPressed() is const.

This commit is contained in:
Steve Checkoway
2009-06-07 21:41:04 +00:00
parent 50baa264d0
commit 3782fbcea2
+1 -1
View File
@@ -738,7 +738,7 @@ void Player::Update( float fDeltaTime )
{
if( m_vAlterMap[i].inpMain == GameI )
{
bIsHoldingButton = bIsHoldingButton | INPUTMAPPER->IsBeingPressed( m_vAlterMap[i].inpAlt );
bIsHoldingButton = bIsHoldingButton || INPUTMAPPER->IsBeingPressed( m_vAlterMap[i].inpAlt );
}
}
}