Skip to content

Commit

Permalink
Stop playlist if gameplay is left early
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Jun 13, 2017
1 parent 2da5dbc commit 3718be2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ScreenGameplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,12 @@ void ScreenGameplay::BeginBackingOutFromGameplay()
m_pSoundMusic->StopPlaying();
m_GameplayAssist.StopPlaying(); // Stop any queued assist ticks.

if (GAMESTATE->IsPlaylistCourse()) {
SONGMAN->allplaylists[SONGMAN->playlistcourse].courseruns.emplace_back(playlistscorekeys);
GAMESTATE->isplaylistcourse = false;
SONGMAN->playlistcourse = "";
}

this->ClearMessageQueue();

m_Cancel.StartTransitioning( SM_DoPrevScreen );
Expand Down Expand Up @@ -2258,6 +2264,7 @@ void ScreenGameplay::HandleScreenMessage( const ScreenMessage SM )
if (GAMESTATE->IsPlaylistCourse()) {
SONGMAN->allplaylists[SONGMAN->playlistcourse].courseruns.emplace_back(playlistscorekeys);
GAMESTATE->isplaylistcourse = false;
SONGMAN->playlistcourse = "";
}

TweenOffScreen();
Expand Down

0 comments on commit 3718be2

Please sign in to comment.