clamp fBaseAlpha

This commit is contained in:
Glenn Maynard
2005-06-17 04:31:46 +00:00
parent ef0acd1ec7
commit f75be1bfaa
+1
View File
@@ -43,6 +43,7 @@ void ReceptorArrowRow::Update( float fDeltaTime )
// m_fDark==1 or m_fFadeToFailPercent==1 should make fBaseAlpha==0
float fBaseAlpha = (1 - m_pPlayerState->m_CurrentPlayerOptions.m_fDark) * (1 - m_fFadeToFailPercent);
CLAMP( fBaseAlpha, 0.0f, 1.0f );
m_ReceptorArrow[c].SetBaseAlpha( fBaseAlpha );
// set arrow XYZ