avoid special cases in parent classes
don't use RageMovieTexture directly
This commit is contained in:
@@ -9,10 +9,16 @@ void ScreenIntroMovie::Update( float fDelta )
|
||||
RageTexture *tex = sprite->GetTexture();
|
||||
if(tex->IsAMovie() && !tex->IsPlaying())
|
||||
this->SendScreenMessage( SM_BeginFadingOut,0 );
|
||||
if( BackgroundImage->GetTexture()->RageMovieTexture::IsFinishedPlaying() == true )
|
||||
{
|
||||
this->SendScreenMessage( SM_BeginFadingOut,0 );
|
||||
}
|
||||
|
||||
and when initting the sprite in ScreenIntroMovie::ScreenIntroMovie:
|
||||
if(sprite->GetTexture->IsAMovie())
|
||||
{
|
||||
tex->SetLooping(false);
|
||||
ClearMessageQueue(SM_BeginFadingOut);
|
||||
}
|
||||
|
||||
Don't use RageMovieTexture directly.
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user