fix potential tweening overflow

This commit is contained in:
Glenn Maynard
2004-04-15 23:22:32 +00:00
parent 585f92c5f3
commit a739e45e3f
+3
View File
@@ -932,6 +932,9 @@ void BGAnimationLayer::Update( float fDeltaTime )
{
PlayCommand( "On" );
m_fSecondsUntilNextCommand += m_fRepeatCommandEverySeconds;
/* In case we delayed a long time, don't queue two repeats at once. */
wrap( m_fSecondsUntilNextCommand, m_fRepeatCommandEverySeconds );
}
}
}