Short circuiting logic: IsBeingPressed() is const.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user