Make InitState() reset Sprite state. Make movies skip the first update. Fixes background movies play too quickly at first.

This commit is contained in:
Steve Checkoway
2008-01-02 10:40:37 +00:00
parent b145705ce7
commit 26dc376eeb
2 changed files with 11 additions and 1 deletions
+9 -1
View File
@@ -23,7 +23,7 @@ Sprite::Sprite()
m_iCurState = 0;
m_fSecsIntoState = 0.0f;
m_bUsingCustomTexCoords = false;
m_bSkipNextUpdate = false;
m_bSkipNextUpdate = true;
m_EffectMode = EffectMode_Normal;
m_fRememberedClipWidth = -1;
@@ -62,6 +62,14 @@ Sprite::Sprite( const Sprite &cpy ):
m_pTexture = NULL;
}
void Sprite::InitState()
{
Actor::InitState();
m_iCurState = 0;
m_fSecsIntoState = 0.0f;
m_bSkipNextUpdate = true;
}
RageTextureID Sprite::SongBGTexture( RageTextureID ID )
{
ID.bMipMaps = true;