From db4ccaf529838819b27bb7ee6611b44d6d39b937 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 17 Feb 2006 05:53:29 +0000 Subject: [PATCH] Fix rounding error from NoteDisplay::SetActiveFrame "vivid" output. --- stepmania/src/Sprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index 91945e85d3..abdbd8d726 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -282,7 +282,7 @@ void Sprite::UpdateAnimationState() // We already know what's going to show. if( m_States.size() > 1 ) { - while( m_fSecsIntoState > m_States[m_iCurState].fDelay ) // it's time to switch frames + while( m_fSecsIntoState+0.0001f > m_States[m_iCurState].fDelay ) // it's time to switch frames { // increment frame and reset the counter m_fSecsIntoState -= m_States[m_iCurState].fDelay; // leave the left over time for the next frame