Ask screen handler to do a transition

Closes: #553
This commit is contained in:
Yauhen Artsiukhou
2025-03-21 19:50:02 -07:00
committed by teejusb
parent e9e228fee0
commit 04401ca365
2 changed files with 6 additions and 8 deletions
+2 -1
View File
@@ -804,8 +804,9 @@ bool ScreenEvaluation::MenuStart( const InputEventPlus &input )
bool ScreenEvaluation::MenuRestart( const InputEventPlus &input )
{
if( IsTransitioning() )
if (IsTransitioning()) {
return false;
}
SCREENMAN->GetTopScreen()->SetNextScreenName("ScreenGameplay");
StartTransitioningScreen( SM_GoToNextScreen );
+4 -7
View File
@@ -856,15 +856,12 @@ bool ScreenGameplay::Center1Player() const
bool ScreenGameplay::MenuRestart( const InputEventPlus &input )
{
if( IsTransitioning() )
if (IsTransitioning()) {
return false;
}
m_DancingState = STATE_OUTRO;
m_pSoundMusic->StopPlaying();
m_GameplayAssist.StopPlaying(); // Stop any queued assist ticks.
SCREENMAN->GetTopScreen()->SetNextScreenName("ScreenGameplay");
m_Cancel.StartTransitioning( SM_GoToNextScreen );
SCREENMAN->GetTopScreen()->SetPrevScreenName("ScreenGameplay");
BeginBackingOutFromGameplay();
return true;
}