tracking down "life meter stuck at 100%"

This commit is contained in:
Chris Danford
2005-05-02 04:05:07 +00:00
parent f04b18b602
commit eb007ce29e
+1
View File
@@ -111,6 +111,7 @@ void StreamDisplay::DrawPrimitives()
void StreamDisplay::SetPercent( float fPercent )
{
ASSERT( fPercent >= 0.0f && fPercent <= 1.0f );
float fDeltaPercent = fPercent - m_fPercent;
m_fVelocity += fDeltaPercent;
m_fPercent = fPercent;