SM_BeginFadingOut is being sent by ScreenAttract already

This commit is contained in:
Glenn Maynard
2005-01-16 14:53:32 +00:00
parent 7183a5e271
commit 0e94b4cbdf
-16
View File
@@ -256,22 +256,6 @@ ScreenEnding::~ScreenEnding()
void ScreenEnding::Update( float fDeltaTime )
{
// The shared background isn't loaded until the screen is actually
// showing. The background is loaded by the time of the first update.
if( IsFirstUpdate() )
{
BGAnimation &background = *SCREENMAN->m_pSharedBGA;
float fSecsUntilBeginFadingOut = background.GetTweenTimeLeft() - m_Out.GetTweenTimeLeft();
if( fSecsUntilBeginFadingOut < 0 )
{
LOG->Warn( "Screen '%s' Out BGAnimation (%f seconds) is longer than Background BGAnimation (%f seconds); background BGA will be truncated",
m_sName.c_str(), m_Out.GetTweenTimeLeft(), background.GetTweenTimeLeft() );
fSecsUntilBeginFadingOut = 0;
}
this->PostScreenMessage( SM_BeginFadingOut, fSecsUntilBeginFadingOut );
}
ScreenAttract::Update( fDeltaTime );
if( m_In.IsTransitioning() && m_Out.IsTransitioning() )