fix mini when not in 0..1

This commit is contained in:
Glenn Maynard
2005-10-22 23:31:12 +00:00
parent 4410080639
commit 025b671698
3 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -519,8 +519,11 @@ float ArrowEffects::GetZoom( const PlayerState* pPlayerState )
fZoom *= 0.6f;
float fMiniPercent = pPlayerState->m_CurrentPlayerOptions.m_fEffects[PlayerOptions::EFFECT_MINI];
fZoom *= SCALE( fMiniPercent, 0, 1, 1, 0.5f );
if( fMiniPercent != 0 )
{
fMiniPercent = powf( 0.5f, fMiniPercent );
fZoom *= fMiniPercent;
}
return fZoom;
}