From c56a9b107e5731b4ea6e28ed90761b55c263dc9e Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 26 Mar 2004 21:36:14 +0000 Subject: [PATCH] fix menu timer expiration problem when in the sort/mode list --- stepmania/src/MusicWheel.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stepmania/src/MusicWheel.cpp b/stepmania/src/MusicWheel.cpp index 85f29a028c..f3d7b2ced7 100644 --- a/stepmania/src/MusicWheel.cpp +++ b/stepmania/src/MusicWheel.cpp @@ -1294,6 +1294,15 @@ void MusicWheel::StartRandom() } else { + /* If we're in SORT_SORT_MENU or SORT_MODE_MENU, then the timer probably ran + * out. Make sure we're in a sort with actual selections. */ + switch( GAMESTATE->m_SortOrder ) + { + case SORT_SORT_MENU: + case SORT_MODE_MENU: + SetOpenGroup("", SortOrder(m_LastSortOrder)); + } + m_iSelection = rand() % m_CurWheelItemData.size(); m_fPositionOffsetFromSelection = 0; m_WheelState = STATE_SELECTING_MUSIC;