end gameplay when workout goal complete
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user