1
0
mirror of synced 2025-01-31 03:53:44 +01:00

Update CSongListNodeComparerUnlockStatus.cs

This commit is contained in:
0auBSQ 2024-10-24 09:24:09 +09:00
parent b41875591b
commit c04a3ccfc8

View File

@ -8,13 +8,13 @@ internal sealed class CSongListNodeComparerUnlockStatus : IComparer<CSongListNod
if (_n1s == 0 || _n2s == 0) {
return -1;
return 0;
}
return _unlockStatusToInt(n1).CompareTo(_unlockStatusToInt(n2));
}
private int _unlockStatusToInt(CSongListNode n1) {
if (!OpenTaiko.Databases.DBSongUnlockables.tIsSongLocked(n1)) return -1;
return (int)OpenTaiko.Databases.DBSongUnlockables.tGetSongHiddenIndex(n1);
if (!OpenTaiko.Databases.DBSongUnlockables.tIsSongLocked(n1)) return 0;
return (int)OpenTaiko.Databases.DBSongUnlockables.tGetSongHiddenIndex(n1) + 1;
}
}