assert for negative updates; they should never happen (this is why

backgrounds would turn black on negative song position updates--the
background would enter hibernate for a while)
This commit is contained in:
Glenn Maynard
2004-04-20 06:04:31 +00:00
parent dd7336185d
commit 9b9d8b5aa4
+1
View File
@@ -297,6 +297,7 @@ bool Actor::IsFirstUpdate()
void Actor::Update( float fDeltaTime )
{
// LOG->Trace( "Actor::Update( %f )", fDeltaTime );
ASSERT_M( fDeltaTime >= 0, ssprintf("%f",fDeltaTime) );
m_fHibernateSecondsLeft -= fDeltaTime;
m_fHibernateSecondsLeft = max( 0, m_fHibernateSecondsLeft );