From ebde2f6a0a71520511264558978461330538a0ba Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 20 Feb 2008 04:15:36 +0000 Subject: [PATCH] end gameplay when workout goal complete --- stepmania/src/ScreenGameplay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index b8273fb471..9a39d9ce94 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -902,6 +902,8 @@ ScreenGameplay::~ScreenGameplay() bool ScreenGameplay::IsLastSong() { + if( WORKOUTMAN->m_pCurWorkout != NULL && GAMESTATE->m_bWorkoutGoalComplete ) + return true; if( GAMESTATE->m_pCurCourse && GAMESTATE->m_pCurCourse->m_bRepeat ) return false; return GAMESTATE->GetCourseSongIndex() >= (int)m_apSongsQueue.size()-1; // GetCourseSongIndex() is 0-based