mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 17:02:57 +08:00
Extract first version out to constant
This commit is contained in:
parent
d31e3e8f1c
commit
4ee7721c51
@ -66,7 +66,7 @@ namespace osu.Game.Scoring.Legacy
|
||||
scoreInfo.Mods = currentRuleset.ConvertFromLegacyMods((LegacyMods)sr.ReadInt32()).ToArray();
|
||||
|
||||
// lazer replays get a really high version number.
|
||||
if (version < 30000000)
|
||||
if (version < LegacyScoreEncoder.FIRST_LAZER_VERSION)
|
||||
scoreInfo.Mods = scoreInfo.Mods.Append(currentRuleset.GetAllMods().OfType<ModClassic>().Single()).ToArray();
|
||||
|
||||
currentBeatmap = workingBeatmap.GetPlayableBeatmap(currentRuleset.RulesetInfo, scoreInfo.Mods);
|
||||
|
@ -17,8 +17,14 @@ namespace osu.Game.Scoring.Legacy
|
||||
{
|
||||
/// <summary>
|
||||
/// Database version in stable-compatible YYYYMMDD format.
|
||||
/// Should be incremented if any changes are made to the format/usage.
|
||||
/// </summary>
|
||||
public const int LATEST_VERSION = 30000000;
|
||||
public const int LATEST_VERSION = FIRST_LAZER_VERSION;
|
||||
|
||||
/// <summary>
|
||||
/// The first stable-compatible YYYYMMDD format version given to lazer usage of replays.
|
||||
/// </summary>
|
||||
public const int FIRST_LAZER_VERSION = 30000000;
|
||||
|
||||
private readonly Score score;
|
||||
private readonly IBeatmap beatmap;
|
||||
|
Loading…
Reference in New Issue
Block a user