end gameplay when workout goal complete

This commit is contained in:
Chris Danford
2008-02-20 04:15:36 +00:00
parent 285cf5ffab
commit ebde2f6a0a
+2
View File
@@ -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