From e905fa76283e505f3deb12158ac0baed2691b0a1 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 5 Jan 2008 15:29:53 +0000 Subject: [PATCH] Have SetSecondsIntoAnimation() set the movie position too. Currently, movies can only be rewound, any value other than 0 is ignored. --- stepmania/src/Sprite.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Sprite.cpp b/stepmania/src/Sprite.cpp index dd69103d78..c11ca60ec6 100644 --- a/stepmania/src/Sprite.cpp +++ b/stepmania/src/Sprite.cpp @@ -741,6 +741,8 @@ float Sprite::GetAnimationLengthSeconds() const void Sprite::SetSecondsIntoAnimation( float fSeconds ) { SetState( 0 ); // rewind to the first state + if( m_pTexture ) + m_pTexture->SetPosition( fSeconds ); m_fSecsIntoState = fSeconds; UpdateAnimationState(); }