Fix timer flickering fast on low countdown values
This commit is contained in:
parent
6f8e7e6e66
commit
41d814c9ca
@ -45,7 +45,8 @@ int CHudTimer::Draw( float fTime )
|
||||
else
|
||||
{
|
||||
m_flPanicTime += gHUD.m_flTimeDelta;
|
||||
if( m_flPanicTime > ((float)seconds / 40.0f))
|
||||
// add 0.1 sec, so it's not flicker fast
|
||||
if( m_flPanicTime > ((float)seconds / 40.0f) + 0.1f)
|
||||
{
|
||||
m_flPanicTime = 0;
|
||||
m_bPanicColorChange = !m_bPanicColorChange;
|
||||
|
Loading…
Reference in New Issue
Block a user