From 7bc279d0c1d044e40f4e4dccf04f4341ce84cef9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 23 Feb 2004 00:23:52 +0000 Subject: [PATCH] cleanup, comment --- stepmania/src/Model.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Model.cpp b/stepmania/src/Model.cpp index f5838fb8fd..b67464e206 100644 --- a/stepmania/src/Model.cpp +++ b/stepmania/src/Model.cpp @@ -679,9 +679,11 @@ Model::AdvanceFrame (float dt) m_fCurrFrame += FRAMES_PER_SECOND * dt * m_fCurAnimationRate; if (m_fCurrFrame >= (float)m_pCurAnimation->nTotalFrames) { - if( (m_bRevertToDefaultAnimation) && (m_sDefaultAnimation != "") ) + if( m_bRevertToDefaultAnimation && m_sDefaultAnimation != "" ) { this->PlayAnimation( m_sDefaultAnimation, m_fDefaultAnimationRate ); + /* XXX: add to m_fCurrFrame the wrapover from the previous + * m_fCurrFrame-m_pCurAnimation->nTotalFrames, so it doesn't skip */ } else {