mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 03:42:57 +08:00
Delete ScoreInfo.HasReplay
as no longer needed
This commit is contained in:
parent
f931f4c324
commit
96d784e06b
@ -213,7 +213,7 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
OnlineID = hasOnlineId ? online_score_id : 0,
|
||||
Ruleset = new OsuRuleset().RulesetInfo,
|
||||
BeatmapInfo = beatmapManager.GetAllUsableBeatmapSets().First().Beatmaps.First(),
|
||||
Hash = replayAvailable ? "online" : string.Empty,
|
||||
HasOnlineReplay = replayAvailable,
|
||||
User = new APIUser
|
||||
{
|
||||
Id = 39828,
|
||||
|
@ -22,8 +22,6 @@ namespace osu.Game.Scoring
|
||||
|
||||
double Accuracy { get; }
|
||||
|
||||
bool HasReplay { get; }
|
||||
|
||||
long LegacyOnlineID { get; }
|
||||
|
||||
DateTimeOffset Date { get; }
|
||||
|
@ -94,8 +94,6 @@ namespace osu.Game.Scoring
|
||||
|
||||
public double Accuracy { get; set; }
|
||||
|
||||
public bool HasReplay => !string.IsNullOrEmpty(Hash) || HasOnlineReplay;
|
||||
|
||||
[Ignored]
|
||||
public bool HasOnlineReplay { get; set; }
|
||||
|
||||
|
@ -37,7 +37,7 @@ namespace osu.Game.Screens.Ranking
|
||||
if (State.Value == DownloadState.LocallyAvailable)
|
||||
return ReplayAvailability.Local;
|
||||
|
||||
if (Score.Value?.HasReplay == true)
|
||||
if (Score.Value?.HasOnlineReplay == true)
|
||||
return ReplayAvailability.Online;
|
||||
|
||||
return ReplayAvailability.NotAvailable;
|
||||
|
Loading…
Reference in New Issue
Block a user