mirror of
https://github.com/ppy/osu.git
synced 2025-01-09 03:02:56 +08:00
Fix replay scores not being populated via player
This commit is contained in:
parent
5e3668b2ea
commit
daa5e63d0d
@ -401,14 +401,18 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected virtual ScoreInfo CreateScore()
|
protected virtual ScoreInfo CreateScore()
|
||||||
{
|
{
|
||||||
var score = DrawableRuleset.ReplayScore?.ScoreInfo ?? new ScoreInfo
|
var score = new ScoreInfo
|
||||||
{
|
{
|
||||||
Beatmap = Beatmap.Value.BeatmapInfo,
|
Beatmap = Beatmap.Value.BeatmapInfo,
|
||||||
Ruleset = rulesetInfo,
|
Ruleset = rulesetInfo,
|
||||||
Mods = Mods.Value.ToArray(),
|
Mods = Mods.Value.ToArray(),
|
||||||
User = api.LocalUser.Value,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (DrawableRuleset.ReplayScore != null)
|
||||||
|
score.User = DrawableRuleset.ReplayScore.ScoreInfo?.User ?? new GuestUser();
|
||||||
|
else
|
||||||
|
score.User = api.LocalUser.Value;
|
||||||
|
|
||||||
ScoreProcessor.PopulateScore(score);
|
ScoreProcessor.PopulateScore(score);
|
||||||
|
|
||||||
return score;
|
return score;
|
||||||
|
Loading…
Reference in New Issue
Block a user