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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user