Have SetSecondsIntoAnimation() set the movie position too. Currently, movies can only be rewound, any value other than 0 is ignored.

This commit is contained in:
Steve Checkoway
2008-01-05 15:29:53 +00:00
parent 3b1a156ca6
commit e905fa7628
+2
View File
@@ -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();
}