1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Change migration to trigger reprocessing on every local beatmap

Was originally relying on the fact that this would be triggered due to a
null `LastOnlineUpdate`, but wouldn't cover the case of beatmaps with no
`OnlineID`.
This commit is contained in:
Dean Herbert 2022-07-21 18:27:31 +09:00
parent 1374738a0d
commit 94cd641fb4

View File

@ -785,11 +785,10 @@ namespace osu.Game.Database
break;
case 20:
// As we now have versioned difficulty calculations, let's reset
// all star ratings and have `BackgroundBeatmapProcessor` recalculate them.
foreach (var beatmap in migration.NewRealm.All<BeatmapInfo>())
{
if (beatmap.StarRating == 0)
beatmap.StarRating = -1;
}
beatmap.StarRating = -1;
break;
}