mirror of https://github.com/ppy/osu
Save score upon map completion
This commit is contained in:
parent
8eff49bccd
commit
4c1abdcd8c
|
@ -67,6 +67,9 @@ public class Player : ScreenWithBeatmapBackground, IProvideCursor
|
|||
/// </summary>
|
||||
private DecoupleableInterpolatingFramedClock adjustableClock;
|
||||
|
||||
[Resolved]
|
||||
private ScoreManager scoreManager { get; set; }
|
||||
|
||||
private PauseContainer pauseContainer;
|
||||
|
||||
private RulesetInfo ruleset;
|
||||
|
@ -273,7 +276,11 @@ private void onCompletion()
|
|||
{
|
||||
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