Fix sort by length
The sort order is not remembered between songs when sorting by length. This can be fixed by recognizing SORT_LENGTH as a sort order that can be used for songs. Reported by @aeubanks in https://github.com/Simply-Love/Simply-Love-SM5/issues/363
This commit is contained in:
@@ -181,7 +181,7 @@ enum SortOrder
|
|||||||
SORT_NONSTOP_COURSES, /**< View only the nonstop courses. */
|
SORT_NONSTOP_COURSES, /**< View only the nonstop courses. */
|
||||||
SORT_ONI_COURSES, /**< View only the oni/survival courses. */
|
SORT_ONI_COURSES, /**< View only the oni/survival courses. */
|
||||||
SORT_ENDLESS_COURSES, /**< View only the endless courses. */
|
SORT_ENDLESS_COURSES, /**< View only the endless courses. */
|
||||||
SORT_LENGTH, /**< Sort the courses by how long they would last. */
|
SORT_LENGTH, /**< Sort the songs/courses by how long they would last. */
|
||||||
SORT_ROULETTE,
|
SORT_ROULETTE,
|
||||||
SORT_RECENT,
|
SORT_RECENT,
|
||||||
NUM_SortOrder,
|
NUM_SortOrder,
|
||||||
@@ -213,7 +213,7 @@ LuaDeclareType( SortOrder );
|
|||||||
*
|
*
|
||||||
* This function is mainly used for saving sort order to the profile. -aj
|
* This function is mainly used for saving sort order to the profile. -aj
|
||||||
*/
|
*/
|
||||||
inline bool IsSongSort( SortOrder so ) { return so >= SORT_PREFERRED && so <= SORT_DOUBLE_CHALLENGE_METER; }
|
inline bool IsSongSort( SortOrder so ) { return (so >= SORT_PREFERRED && so <= SORT_DOUBLE_CHALLENGE_METER) || so == SORT_LENGTH; }
|
||||||
|
|
||||||
/** @brief The list of tap note scores available during play. */
|
/** @brief The list of tap note scores available during play. */
|
||||||
enum TapNoteScore {
|
enum TapNoteScore {
|
||||||
|
|||||||
Reference in New Issue
Block a user