Don't allow cancelling ScreenCaution while i''s already in the process of being cancelled.

(Other screens have this problem, too ...)
This commit is contained in:
Glenn Maynard
2002-08-20 08:29:55 +00:00
parent 13acb4ac15
commit 10b0287c9d
+3 -1
View File
@@ -45,7 +45,7 @@ ScreenCaution::ScreenCaution()
m_FadeWipe.SetOpened();
this->AddSubActor( &m_FadeWipe );
this->SendScreenMessage( SM_StartClosing, 3 );
this->SendScreenMessage( SM_StartClosing, 1 );
}
@@ -97,6 +97,8 @@ void ScreenCaution::MenuStart( const PlayerNumber p )
void ScreenCaution::MenuBack( const PlayerNumber p )
{
if(m_FadeWipe.IsClosing())
return;
this->ClearMessageQueue();
m_FadeWipe.CloseWipingLeft( SM_GoToPrevState );
SOUND->PlayOnceStreamed( THEME->GetPathTo("Sounds","menu back") );