HACK: invalidates currenly selected song if its a longversion or marathon and after clearing user doesn't have enough songs left to play it again

(previous behavior was it would select the first group heading if they were on, and the stage counter was messed up)
(if group headings were off, it would work fine previously, should still work fine)
This commit is contained in:
Andrew Wong
2003-08-07 02:35:08 +00:00
parent 1e5d26fdc9
commit f5794f47f7
+5
View File
@@ -167,6 +167,11 @@ MusicWheel::MusicWheel()
for( int so=0; so<NUM_SORT_ORDERS; so++ )
BuildWheelItemDatas( m_WheelItemDatas[so], SongSortOrder(so) );
// HACK: invalidate currently selected song in the case that it
// cannot be played due to lack of stages remaining
if( GAMESTATE->m_pCurSong != NULL && SongManager::GetNumStagesForSong( GAMESTATE->m_pCurSong ) + GAMESTATE->m_iCurrentStageIndex > PREFSMAN->m_iNumArcadeStages)
GAMESTATE->m_pCurSong = NULL;
// If there is no currently selected song, select one.
if( GAMESTATE->m_pCurSong == NULL )
{