1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 16:07:24 +08:00

Ensure migration is never run on scores with new-enough TotalScoreVersions

This commit is contained in:
Dean Herbert 2023-07-14 20:02:25 +09:00
parent d4fb0bef95
commit 480259b8d2

View File

@ -26,6 +26,9 @@ namespace osu.Game.Database
if (score.IsLegacyScore)
return false;
if (score.TotalScoreVersion > 30000002)
return false;
// Recalculate the old-style standardised score to see if this was an old lazer score.
bool oldScoreMatchesExpectations = GetOldStandardised(score) == score.TotalScore;
// Some older scores don't have correct statistics populated, so let's give them benefit of doubt.