mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 03:22:59 +08:00
Ensure migration is never run on scores with new-enough TotalScoreVersion
s
This commit is contained in:
parent
d4fb0bef95
commit
480259b8d2
@ -26,6 +26,9 @@ namespace osu.Game.Database
|
|||||||
if (score.IsLegacyScore)
|
if (score.IsLegacyScore)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (score.TotalScoreVersion > 30000002)
|
||||||
|
return false;
|
||||||
|
|
||||||
// Recalculate the old-style standardised score to see if this was an old lazer score.
|
// Recalculate the old-style standardised score to see if this was an old lazer score.
|
||||||
bool oldScoreMatchesExpectations = GetOldStandardised(score) == score.TotalScore;
|
bool oldScoreMatchesExpectations = GetOldStandardised(score) == score.TotalScore;
|
||||||
// Some older scores don't have correct statistics populated, so let's give them benefit of doubt.
|
// Some older scores don't have correct statistics populated, so let's give them benefit of doubt.
|
||||||
|
Loading…
Reference in New Issue
Block a user