FIX: Dead appearance on start.

This commit is contained in:
Charles Lohr
2005-01-26 08:05:59 +00:00
parent e1f6ea5217
commit 73a63247e6
+8
View File
@@ -495,6 +495,14 @@ bool LifeMeterBar::IsFailing() const
void LifeMeterBar::Update( float fDeltaTime )
{
// HACK: Prevent 'Dead on Start' appearance
// the way the physics work, if there is an unusually
// larget delta, it will cause the meter to have a very
// strange effect.
//
if ( fDeltaTime >= 2.0 )
return;
LifeMeter::Update( fDeltaTime );