mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 10:22:56 +08:00
Save score upon map completion
This commit is contained in:
parent
8eff49bccd
commit
4c1abdcd8c
@ -67,6 +67,9 @@ namespace osu.Game.Screens.Play
|
||||
/// </summary>
|
||||
private DecoupleableInterpolatingFramedClock adjustableClock;
|
||||
|
||||
[Resolved]
|
||||
private ScoreManager scoreManager { get; set; }
|
||||
|
||||
private PauseContainer pauseContainer;
|
||||
|
||||
private RulesetInfo ruleset;
|
||||
@ -273,7 +276,11 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
if (!IsCurrentScreen) return;
|
||||
|
||||
Push(new Results(CreateScoreInfo()));
|
||||
var score = CreateScoreInfo();
|
||||
if (RulesetContainer.Replay == null)
|
||||
scoreManager.Import(score);
|
||||
|
||||
Push(new Results(score));
|
||||
|
||||
onCompletionEvent = null;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user