From 9b9d8b5aa403ae33e277fa9a6f2b173d08aa748b Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 20 Apr 2004 06:04:31 +0000 Subject: [PATCH] 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) --- stepmania/src/Actor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 471ba701d6..012150c48c 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -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 );