Change default value of StarRating to -1

This commit is contained in:
Dean Herbert
2022-07-21 17:39:07 +09:00
parent 04f48d8862
commit d5e0dba9da
3 changed files with 18 additions and 4 deletions

View File

@ -71,7 +71,7 @@ namespace osu.Game
{
if (b.Ruleset.ShortName == ruleset.ShortName)
{
b.StarRating = 0;
b.StarRating = -1;
countReset++;
}
}
@ -92,7 +92,7 @@ namespace osu.Game
realmAccess.Run(r =>
{
foreach (var b in r.All<BeatmapInfo>().Where(b => b.StarRating == 0 || (b.OnlineID > 0 && b.LastOnlineUpdate == null)))
foreach (var b in r.All<BeatmapInfo>().Where(b => b.StarRating < 0 || (b.OnlineID > 0 && b.LastOnlineUpdate == null)))
{
Debug.Assert(b.BeatmapSet != null);
beatmapSetIds.Add(b.BeatmapSet.ID);